diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-04-08 11:00:32 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-04-08 11:00:32 +0200 |
commit | e9f8f159ebad405b2c08aa75f735146bb8e216ef (patch) | |
tree | fd09cabbbeb15291b26f5a7775c126ed2cbcabc7 /git/test/test_remote.py | |
parent | 723f100a422577235e06dc024a73285710770fca (diff) | |
download | gitpython-e9f8f159ebad405b2c08aa75f735146bb8e216ef.tar.gz |
fix(remote): allow to raise during push/fetch
Do not swallow non-zero exit status during push and fetch unless
we managed to parse head information.
This behaviour will effetively handle cases were no work was done
due to invalid refspecs or insufficient permissions.
Fixes #271
Diffstat (limited to 'git/test/test_remote.py')
-rw-r--r-- | git/test/test_remote.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/git/test/test_remote.py b/git/test/test_remote.py index 8500a295..c419ecee 100644 --- a/git/test/test_remote.py +++ b/git/test/test_remote.py @@ -313,8 +313,7 @@ class TestRemote(TestBase): self._do_test_push_result(res, remote) # invalid refspec - res = remote.push("hellothere") - assert len(res) == 0 + self.failUnlessRaises(GitCommandError, remote.push, "hellothere") # push new tags progress = TestRemoteProgress() |