diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 19:43:01 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-22 19:43:01 +0200 |
commit | 1496979cf7e9692ef869d2f99da6141756e08d25 (patch) | |
tree | 01c3c37c08e396d3a61b19f5cde51ed0e414f635 /lib/git/utils.py | |
parent | 7184340f9d826a52b9e72fce8a30b21a7c73d5be (diff) | |
download | gitpython-1496979cf7e9692ef869d2f99da6141756e08d25.tar.gz |
default index writing now writes the index of the current repository in a fashion comparable to the native implementation
Diffstat (limited to 'lib/git/utils.py')
-rw-r--r-- | lib/git/utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/git/utils.py b/lib/git/utils.py index f188a7a4..8cdb4804 100644 --- a/lib/git/utils.py +++ b/lib/git/utils.py @@ -201,7 +201,9 @@ class ConcurrentWriteOperation(LockFile): if self._temp_write_fp is None: return - self._temp_write_fp.close() + if not self._temp_write_fp.closed: + self._temp_write_fp.close() + if successful: # on windows, rename does not silently overwrite the existing one if sys.platform == "win32": |