We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53d22bb commit bf1f775Copy full SHA for bf1f775
1 file changed
git/index/base.py
@@ -138,6 +138,7 @@ def _set_cache_(self, attr: str) -> None:
138
stream = file_contents_ro(fd, stream=True, allow_mmap=True)
139
140
self._deserialize(stream)
141
+ os.close(fd)
142
else:
143
super(IndexFile, self)._set_cache_(attr)
144
0 commit comments