summaryrefslogtreecommitdiff
path: root/lib/git/index.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/index.py')
-rw-r--r--lib/git/index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/index.py b/lib/git/index.py
index f0da4b64..04ba9130 100644
--- a/lib/git/index.py
+++ b/lib/git/index.py
@@ -485,7 +485,7 @@ class IndexFile(LazyMixin, diff.Diffable):
try:
repo.git.read_tree(*arg_list, **kwargs)
index = cls(repo, tmp_index)
- index.entries # force it to read the file
+ index.entries # force it to read the file as we will delete the temp-file
finally:
if os.path.exists(tmp_index):
os.remove(tmp_index)