diff options
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git/index/base.py b/git/index/base.py index 0553f418..10de3358 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -579,6 +579,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): fprogress(filepath, False, filepath) istream = self.repo.odb.store(IStream(Blob.type, st.st_size, stream)) fprogress(filepath, True, filepath) + stream.close() return BaseIndexEntry((stat_mode_to_index_mode(st.st_mode), istream.binsha, 0, to_native_path_linux(filepath))) |