Skip to content

Commit ef1ef4d

Browse files
f100024Byron
f100024
authored andcommitted
Add encoding to utf-8 for fetch_info_lines;
Add encoding to utf-8 for fetch_head_info;
1 parent 1207747 commit ef1ef4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: git/remote.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,8 @@ def _get_fetch_info_from_stderr(self, proc: 'Git.AutoInterrupt',
751751
msg += "Will ignore extra progress lines or fetch head lines."
752752
msg %= (l_fil, l_fhi)
753753
log.debug(msg)
754-
log.debug("info lines: " + str(fetch_info_lines))
755-
log.debug("head info : " + str(fetch_head_info))
754+
log.debug(b"info lines: " + str(fetch_info_lines).encode("UTF-8"))
755+
log.debug(b"head info: " + str(fetch_head_info).encode("UTF-8"))
756756
if l_fil < l_fhi:
757757
fetch_head_info = fetch_head_info[:l_fil]
758758
else:

0 commit comments

Comments
 (0)