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

Commit6a47114

Browse files
committed
Close .git/index file descriptor
1 parent53d22bb commit6a47114

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
@@ -138,6 +138,7 @@ def _set_cache_(self, attr: str) -> None:
138138
stream=file_contents_ro(fd,stream=True,allow_mmap=True)
139139

140140
self._deserialize(stream)
141+
os.close(fd)
141142
else:
142143
super(IndexFile,self)._set_cache_(attr)
143144

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp