diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 17:10:59 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 17:55:57 +0200 |
commit | 6e98416791566f44a407dcac07a1e1f1b0483544 (patch) | |
tree | 36ec45d49a2da3dca0e8a590456e74f113112a77 /git/exc.py | |
parent | 44c6d0b368bc1ec6cd0a97b01678b38788c9bd9c (diff) | |
download | gitpython-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |