From 6bad2b5352e6ab568be1f2969bb8103cbe4486a9 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Fri, 23 Oct 2020 01:27:59 +0300 Subject: [PATCH] Fix support non-ascii git diff --- trains_agent/helper/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trains_agent/helper/repo.py b/trains_agent/helper/repo.py index 4928dfc..1af581c 100644 --- a/trains_agent/helper/repo.py +++ b/trains_agent/helper/repo.py @@ -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(