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
fromgit.cmdimporthandle_process_output
3434
fromgitdb.utilimportjoin
35-
fromgit.compatimport (defenc, safe_decode)
35+
fromgit.compatimport (defenc, force_text)
3636
importlogging
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
forlineinproc.stderr:
554-
line=safe_decode(line)
554+
line=force_text(line)
555555
forplineinprogress_handler(line):
556556
ifline.startswith('fatal:') orline.startswith('error:'):
557557
raiseGitCommandError(("Error when fetching: %s"%line,), 2)

0 commit comments

Comments
(0)