From 3e79604c8bdfc367f10a4a522c9bf548bdb3ab9a Mon Sep 17 00:00:00 2001 From: Victor Garcia Date: Mon, 8 Jun 2015 18:19:34 -0700 Subject: [PATCH] While parsing errors, also detecting lines starting with error: --- git/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: