summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index 4baa2838..485e1445 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -555,7 +555,7 @@ class Remote(LazyMixin, Iterable):
line = line.decode(defenc)
line = line.rstrip()
for pline in progress_handler(line):
- if line.startswith('fatal:'):
+ if line.startswith('fatal:') or line.startswith('error:'):
raise GitCommandError(("Error when fetching: %s" % line,), 2)
# END handle special messages
for cmd in cmds: