diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 21:39:22 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 21:39:22 +0100 |
| commit | 453995f70f93c0071c5f7534f58864414f01cfde (patch) | |
| tree | 1879f5e02587484ccd56cb371e02cd2ad4bc401d /lib/git/remote.py | |
| parent | ec1f9c9e9a6ce14ddc69b6be65188b3438f31f23 (diff) | |
| download | gitpython-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.py | 5 |
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 |
