summaryrefslogtreecommitdiff
path: root/lib/git/remote.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-11-04 21:39:22 +0100
committerSebastian Thiel <byronimo@gmail.com>2009-11-04 21:39:22 +0100
commit453995f70f93c0071c5f7534f58864414f01cfde (patch)
tree1879f5e02587484ccd56cb371e02cd2ad4bc401d /lib/git/remote.py
parentec1f9c9e9a6ce14ddc69b6be65188b3438f31f23 (diff)
downloadgitpython-453995f70f93c0071c5f7534f58864414f01cfde.tar.gz
improved error when setting up server based test to make clear a server needs to be started
Diffstat (limited to 'lib/git/remote.py')
-rw-r--r--lib/git/remote.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/git/remote.py b/lib/git/remote.py
index 9141fc3b..b1c90bd5 100644
--- a/lib/git/remote.py
+++ b/lib/git/remote.py
@@ -607,8 +607,11 @@ class Remote(LazyMixin, Iterable):
# END for each line
try:
proc.wait()
- except GitCommandError:
+ except GitCommandError,e:
# if a push has rejected items, the command has non-zero return status
+ # a return status of 128 indicates a connection error - reraise the previous one
+ if proc.poll() == 128:
+ raise
pass
# END exception handling
return output