summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2017-10-07 07:37:56 +0200
committerGitHub <noreply@github.com>2017-10-07 07:37:56 +0200
commitf237620189a55d491b64cac4b5dc01b832cb3cbe (patch)
tree361198ce27124885c231d010521b4a3ee004150a
parent95ff8274a0a0a723349416c60e593b79d16227dc (diff)
parent1dbfd290609fe43ca7d94e06cea0d60333343838 (diff)
downloadgitpython-f237620189a55d491b64cac4b5dc01b832cb3cbe.tar.gz
Merge pull request #682 from pabelanger/temp/encoding
Fix encoding issue with stderr_value and kill_after_timeout
-rw-r--r--git/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index e0946e47..13c01401 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -780,8 +780,8 @@ class Git(LazyMixin):
if kill_after_timeout:
watchdog.cancel()
if kill_check.isSet():
- stderr_value = 'Timeout: the command "%s" did not complete in %d ' \
- 'secs.' % (" ".join(command), kill_after_timeout)
+ stderr_value = ('Timeout: the command "%s" did not complete in %d '
+ 'secs.' % (" ".join(command), kill_after_timeout)).encode(defenc)
# strip trailing "\n"
if stdout_value.endswith(b"\n"):
stdout_value = stdout_value[:-1]