8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95ff827 + 1dbfd29 commit f237620Copy full SHA for f237620
git/cmd.py
@@ -780,8 +780,8 @@ def _kill_process(pid):
780
if kill_after_timeout:
781
watchdog.cancel()
782
if kill_check.isSet():
783
- stderr_value = 'Timeout: the command "%s" did not complete in %d ' \
784
- '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)
785
# strip trailing "\n"
786
if stdout_value.endswith(b"\n"):
787
stdout_value = stdout_value[:-1]
0 commit comments