mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 09:06:52 +00:00
Fix support non-ascii git diff
This commit is contained in:
parent
a09a638b9c
commit
6bad2b5352
@ -381,7 +381,7 @@ class VCS(object):
|
|||||||
"""
|
"""
|
||||||
Run command with `input_` as stdin
|
Run command with `input_` as stdin
|
||||||
"""
|
"""
|
||||||
input_ = input_.encode("latin1")
|
input_ = input_.encode("utf-8")
|
||||||
if not input_.endswith(b"\n"):
|
if not input_.endswith(b"\n"):
|
||||||
input_ += b"\n"
|
input_ += b"\n"
|
||||||
process = self._call_subprocess(
|
process = self._call_subprocess(
|
||||||
|
Loading…
Reference in New Issue
Block a user