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 225529c commit 9932e64Copy full SHA for 9932e64
1 file changed
git/refs/log.py
@@ -216,7 +216,6 @@ def entry_at(cls, filepath, index):
216
all other lines. Nonetheless, the whole file has to be read if
217
the index is negative
218
"""
219
- fp = open(filepath, 'rb')
220
with open(filepath, 'rb') as fp:
221
if index < 0:
222
return RefLogEntry.from_line(fp.readlines()[index].strip())
0 commit comments