diff --git a/git/remote.py b/git/remote.py index 4baa2838c..485e1445d 100644 --- a/git/remote.py +++ b/git/remote.py @@ -555,7 +555,7 @@ def _get_fetch_info_from_stderr(self, proc, progress): 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: