summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-08 09:21:25 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-08 09:24:32 +0100
commitc7887c66483ffa9a839ecf1a53c5ef718dcd1d2d (patch)
treed1ad397204ded47871580a157011c5754ce5fbbb /git/remote.py
parent36cdfd3209909163549850709d7f12fdf1316434 (diff)
downloadgitpython-c7887c66483ffa9a839ecf1a53c5ef718dcd1d2d.tar.gz
Improve error handling of fetch/pull line parsing
Fixes #48
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 87db5dd4..4d249004 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -518,7 +518,7 @@ class Remote(LazyMixin, Iterable):
raise GitCommandError(("Error when fetching: %s" % line,), 2)
# END handle special messages
for cmd in cmds:
- if line[1] == cmd:
+ if len(line) > 1 and line[0] == ' ' and line[1] == cmd:
fetch_info_lines.append(line)
continue
# end find command code