Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98f6995

Browse files
committed
fix(index): _store_path() now closes it's stream
This should prevent a resource warning given in py3Fixesgitpython-developers#263
1 parent8f043d8 commit98f6995

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎git/index/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ def _store_path(self, filepath, fprogress):
579579
fprogress(filepath,False,filepath)
580580
istream=self.repo.odb.store(IStream(Blob.type,st.st_size,stream))
581581
fprogress(filepath,True,filepath)
582+
stream.close()
582583
returnBaseIndexEntry((stat_mode_to_index_mode(st.st_mode),
583584
istream.binsha,0,to_native_path_linux(filepath)))
584585

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp