From 26d1be7b879d2d44cf941fe2fad6afa6590ed6cb Mon Sep 17 00:00:00 2001 From: f100024 Date: Mon, 23 Aug 2021 12:13:34 +0300 Subject: [PATCH] Add encoding to utf-8 for fetch_info_lines; Add encoding to utf-8 for fetch_head_info; --- git/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git/remote.py b/git/remote.py index 3888506fd..da08fb577 100644 --- a/git/remote.py +++ b/git/remote.py @@ -751,8 +751,8 @@ def _get_fetch_info_from_stderr(self, proc: 'Git.AutoInterrupt', msg += "Will ignore extra progress lines or fetch head lines." msg %= (l_fil, l_fhi) log.debug(msg) - log.debug("info lines: " + str(fetch_info_lines)) - log.debug("head info : " + str(fetch_head_info)) + log.debug(b"info lines: " + str(fetch_info_lines).encode("UTF-8")) + log.debug(b"head info: " + str(fetch_head_info).encode("UTF-8")) if l_fil < l_fhi: fetch_head_info = fetch_head_info[:l_fil] else: