summaryrefslogtreecommitdiff
path: root/lib/git/errors.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 22:14:02 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 22:16:54 +0200
commitea33fe8b21d2b02f902b131aba0d14389f2f8715 (patch)
treece48feb6d2da2bed92240c0fbd2350e05f7b7519 /lib/git/errors.py
parent1496979cf7e9692ef869d2f99da6141756e08d25 (diff)
downloadgitpython-ea33fe8b21d2b02f902b131aba0d14389f2f8715.tar.gz
Index: Is now diffable and appears to properly implement diffing against other items as well as the working tree
Diff.Diffable: added callback allowing superclasses to preprocess diff arguments Diff.Diff: added eq, ne and hash methods, string methods would be nice
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r--lib/git/errors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py
index 18c58073..cde2798a 100644
--- a/lib/git/errors.py
+++ b/lib/git/errors.py
@@ -25,8 +25,8 @@ class GitCommandError(Exception):
self.stderr = stderr
self.status = status
self.command = command
-
+
def __str__(self):
- return repr("'%s' returned exit status %d: %r" %
- (' '.join(self.command), self.status, str(self.stderr)))
+ return ("'%s' returned exit status %i: %s" %
+ (' '.join(str(i) for i in self.command), self.status, self.stderr))