summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-06 12:22:16 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-06 12:22:16 +0100
commit60e54133aa1105a1270f0a42e74813f75cd2dc46 (patch)
treec5d6a2c600ef7d9a66d8a11e1e474b921cccfb7d /git/exc.py
parenta83eee5bcee64eeb000dd413ab55aa98dcc8c7f2 (diff)
downloadgitpython-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.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/git/exc.py b/git/exc.py
index ba57c624..67fb9894 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -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