We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a1339a commit 3c19a6eCopy full SHA for 3c19a6e
git/cmd.py
@@ -785,7 +785,9 @@ def _kill_process(pid):
785
watchdog.cancel()
786
if kill_check.isSet():
787
stderr_value = ('Timeout: the command "%s" did not complete in %d '
788
- 'secs.' % (" ".join(command), kill_after_timeout)).encode(defenc)
+ 'secs.' % (" ".join(command), kill_after_timeout))
789
+ if not universal_newlines:
790
+ stderr_value = stderr_value.encode(defenc)
791
# strip trailing "\n"
792
if stdout_value.endswith(newline):
793
stdout_value = stdout_value[:-1]
0 commit comments