From 2ab454f0ccf09773a4f51045329a69fd73559414 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 19 Nov 2010 18:45:27 +0100 Subject: remote: parsing of fetch information now reacts to fatal errors. Previously it would just bump into an assertion --- lib/git/remote.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/git/remote.py') 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 -- cgit v1.2.1