summaryrefslogtreecommitdiff
path: root/git/exc.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 17:10:59 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 17:55:57 +0200
commit6e98416791566f44a407dcac07a1e1f1b0483544 (patch)
tree36ec45d49a2da3dca0e8a590456e74f113112a77 /git/exc.py
parent44c6d0b368bc1ec6cd0a97b01678b38788c9bd9c (diff)
downloadgitpython-6e98416791566f44a407dcac07a1e1f1b0483544.tar.gz
remote, #519: INCOMPLETE FIX-2 double-decoding push-infos
+ Unicode PY2/3 issues fixed also in pump stream func.
Diffstat (limited to 'git/exc.py')
-rw-r--r--git/exc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/exc.py b/git/exc.py
index 6c9cde34..47215c21 100644
--- a/git/exc.py
+++ b/git/exc.py
@@ -34,7 +34,8 @@ class CommandError(UnicodeMixin, Exception):
_msg = u"Cmd('%s') failed%s"
def __init__(self, command, status=None, stderr=None, stdout=None):
- assert isinstance(command, (tuple, list)), command
+ if not isinstance(command, (tuple, list)):
+ command = command.split()
self.command = command
self.status = status
if status: