From 15049aa2f20d2dc9129a5e14b5ec5ecd46562bb8 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 6 Jul 2012 21:08:27 +0200 Subject: [PATCH] Fixed issue #1260: Concurrent write access to git index can crash TGitCache Signed-off-by: Sven Strickroth --- src/Changelog.txt | 1 + src/Git/GitIndex.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Changelog.txt b/src/Changelog.txt index d06214bf7..2792121e9 100644 --- a/src/Changelog.txt +++ b/src/Changelog.txt @@ -9,6 +9,7 @@ Released: unreleased * Fixed issue #913: Merge does not cope with ambiguous tag and branch names * Fixed issue #1256: TortoiseProc crashes on composing invalid ref error message * Fixed issue #1254: Adding file extensions to root .gitignore + * Fixed issue #1260: Concurrent write access to git index can crash TGitCache = Release 1.7.11.0 = Released: 2012-07-02 diff --git a/src/Git/GitIndex.cpp b/src/Git/GitIndex.cpp index 07e5b9cdb..57fc36b52 100644 --- a/src/Git/GitIndex.cpp +++ b/src/Git/GitIndex.cpp @@ -99,7 +99,7 @@ int CGitIndexList::ReadIndex(CString IndexFile) CAutoFile hfile = CreateFile(IndexFile, GENERIC_READ, - FILE_SHARE_READ|FILE_SHARE_DELETE|FILE_SHARE_WRITE, + FILE_SHARE_READ|FILE_SHARE_DELETE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, -- 2.11.4.GIT