summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index fa9cb596..7820fd66 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -716,7 +716,7 @@ class Repo(object):
# Discard all lines until we find "filename" which is
# guaranteed to be the last line
while True:
- line = next(stream)
+ line = next(stream) # will fail if we reach the EOF unexpectedly
tag, value = line.split(b' ', 1)
if tag == b'filename':
orig_filename = value