Skip to content

Commit 610d4c9

Browse files
authored
Merge pull request #692 from Dreamsorcerer/patch-1
Fix broken progress in clone_from()
2 parents bfae362 + 9d4859e commit 610d4c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/repo/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,9 @@ def _clone(cls, git, url, path, odb_default_type, progress, **kwargs):
930930
if sep_dir:
931931
kwargs['separate_git_dir'] = Git.polish_url(sep_dir)
932932
proc = git.clone(Git.polish_url(url), clone_path, with_extended_output=True, as_process=True,
933-
v=True, **add_progress(kwargs, git, progress))
933+
v=True, universal_newlines=True, **add_progress(kwargs, git, progress))
934934
if progress:
935-
handle_process_output(proc, None, progress.new_message_handler(), finalize_process)
935+
handle_process_output(proc, None, progress.new_message_handler(), finalize_process, decode_streams=False)
936936
else:
937937
(stdout, stderr) = proc.communicate()
938938
log.debug("Cmd(%s)'s unused stdout: %s", getattr(proc, 'args', ''), stdout)

0 commit comments

Comments
 (0)