Skip to content

Commit 902679c

Browse files
committed
fix(remote): py3 compatibility
Related to #444
1 parent 5efdad2 commit 902679c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
)
3333
from git.cmd import handle_process_output
3434
from gitdb.util import join
35-
from git.compat import (defenc, safe_decode)
35+
from git.compat import (defenc, force_text)
3636
import logging
3737

3838
log = logging.getLogger('git.remote')
@@ -551,7 +551,7 @@ def _get_fetch_info_from_stderr(self, proc, progress):
551551
progress_handler = progress.new_message_handler()
552552

553553
for line in proc.stderr:
554-
line = safe_decode(line)
554+
line = force_text(line)
555555
for pline in progress_handler(line):
556556
if line.startswith('fatal:') or line.startswith('error:'):
557557
raise GitCommandError(("Error when fetching: %s" % line,), 2)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy