From a1634dc48b39ecca11dc39fd8bbf9f1d8f1b7be6 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 14 Oct 2018 13:01:14 +0200 Subject: Apply fix for #564 As suggested in this comment https://github.com/gitpython-developers/GitPython/issues/564#issuecomment-298257402 --- git/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index 1186d311..a3b1fbfb 100644 --- a/git/util.py +++ b/git/util.py @@ -386,7 +386,7 @@ class RemoteProgress(object): # handle # Counting objects: 4, done. # Compressing objects: 50% (1/2) \rCompressing objects: 100% (2/2) \rCompressing objects: 100% (2/2), done. - self._cur_line = line + self._cur_line = line = line.decode('utf-8') if isinstance(line, bytes) else line if len(self.error_lines) > 0 or self._cur_line.startswith(('error:', 'fatal:')): self.error_lines.append(self._cur_line) return [] -- cgit v1.2.1