diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-06 12:22:16 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-06 12:22:16 +0100 |
commit | 60e54133aa1105a1270f0a42e74813f75cd2dc46 (patch) | |
tree | c5d6a2c600ef7d9a66d8a11e1e474b921cccfb7d /git/exc.py | |
parent | a83eee5bcee64eeb000dd413ab55aa98dcc8c7f2 (diff) | |
download | gitpython-60e54133aa1105a1270f0a42e74813f75cd2dc46.tar.gz |
test_remote works
And I have to wonder why git-daemon serves under py2.7, but really
wants receive-pack to be allowed under 3.4. Maybe it's a repository
override which for some reason doesn't work in py3.4 ? Maybe because
the change is not flushed ?
Diffstat (limited to 'git/exc.py')
-rw-r--r-- | git/exc.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -29,10 +29,12 @@ class GitCommandError(Exception): self.command = command def __str__(self): - ret = "'%s' returned exit status %i: %s" % \ - (' '.join(str(i) for i in self.command), self.status, self.stderr) - if self.stdout is not None: - ret += "\nstdout: %s" % self.stdout + ret = "'%s' returned with exit code %i" % \ + (' '.join(str(i) for i in self.command), self.status) + if self.stderr: + ret += "\nstderr: '%s'" % self.stderr + if self.stdout: + ret += "\nstdout: '%s'" % self.stdout return ret |