summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/refs/log.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/git/refs/log.py b/git/refs/log.py
index ab5d75a3..432232ac 100644
--- a/git/refs/log.py
+++ b/git/refs/log.py
@@ -216,7 +216,6 @@ class RefLog(list, Serializable):
all other lines. Nonetheless, the whole file has to be read if
the index is negative
"""
- fp = open(filepath, 'rb')
with open(filepath, 'rb') as fp:
if index < 0:
return RefLogEntry.from_line(fp.readlines()[index].strip())