From ef1ef4db2553384cc615ca2c5836883c52b910b0 Mon Sep 17 00:00:00 2001 From: f100024 Date: Mon, 23 Aug 2021 12:13:34 +0300 Subject: 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 3888506f..da08fb57 100644 --- a/git/remote.py +++ b/git/remote.py @@ -751,8 +751,8 @@ class Remote(LazyMixin, IterableObj): 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: -- cgit v1.2.1