Skip to content

Commit 2ab454f

Browse files
committed
remote: parsing of fetch information now reacts to fatal errors. Previously it would just bump into an assertion
1 parent 7dd6186 commit 2ab454f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/git/remote.py

+2
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,8 @@ def _get_fetch_info_from_stderr(self, proc, progress):
595595
elif line.startswith('warning:'):
596596
print >> sys.stderr, line
597597
continue
598+
elif line.startswith('fatal:'):
599+
raise GitCommandError("Error when fetching: %s" % line)
598600
# END handle special messages
599601
fetch_info_lines.append(line)
600602
# END for each line

0 commit comments

Comments
 (0)