diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-19 18:45:27 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-19 18:45:27 +0100 |
commit | 2ab454f0ccf09773a4f51045329a69fd73559414 (patch) | |
tree | eec71ee2ef2a929b74860d4dd6be230ec3af5b3c /lib/git/remote.py | |
parent | 7dd618655c96ff32b5c30e41a5406c512bcbb65f (diff) | |
download | gitpython-2ab454f0ccf09773a4f51045329a69fd73559414.tar.gz |
remote: parsing of fetch information now reacts to fatal errors. Previously it would just bump into an assertion
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r-- | lib/git/remote.py | 2 |
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 |