summaryrefslogtreecommitdiff
path: root/lib/git/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r--lib/git/remote.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/git/remote.py b/lib/git/remote.py
index a06da222..3edde175 100644
--- a/lib/git/remote.py
+++ b/lib/git/remote.py
@@ -595,6 +595,8 @@ class Remote(LazyMixin, Iterable):
elif line.startswith('warning:'):
print >> sys.stderr, line
continue
+ elif line.startswith('fatal:'):
+ raise GitCommandError("Error when fetching: %s" % line)
# END handle special messages
fetch_info_lines.append(line)
# END for each line