Fix support non-ascii git diff

This commit is contained in:
allegroai 2020-10-23 01:27:59 +03:00
parent a09a638b9c
commit 6bad2b5352

View File

@ -381,7 +381,7 @@ class VCS(object):
"""
Run command with `input_` as stdin
"""
input_ = input_.encode("latin1")
input_ = input_.encode("utf-8")
if not input_.endswith(b"\n"):
input_ += b"\n"
process = self._call_subprocess(