summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-06 14:05:30 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-06 14:05:30 +0100
commita05e49d2419d65c59c65adf5cd8c05f276550e1d (patch)
tree62d8284dbccfee635babe9c46ad5a059f5da0bde /git/exc.py
parent60e54133aa1105a1270f0a42e74813f75cd2dc46 (diff)
downloadgitpython-a05e49d2419d65c59c65adf5cd8c05f276550e1d.tar.gz
test_repo works
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/exc.py b/git/exc.py
index 67fb9894..42191c62 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -7,6 +7,8 @@
from gitdb.exc import * # NOQA
+from git.compat import defenc
+
class InvalidGitRepositoryError(Exception):
@@ -32,9 +34,9 @@ class GitCommandError(Exception):
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
+ ret += "\nstderr: '%s'" % self.stderr.decode(defenc)
if self.stdout:
- ret += "\nstdout: '%s'" % self.stdout
+ ret += "\nstdout: '%s'" % self.stdout.decode(defenc)
return ret