diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2017-11-19 15:53:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-19 15:53:29 +0100 |
commit | 610d4c97485d2c0d4f65b87f2620a84e0df99341 (patch) | |
tree | dc974d83b1c4d296a74b2faaa7f5ad782c373385 /git/repo/base.py | |
parent | bfae362363b28be9b86250eb7f6a32dac363c993 (diff) | |
parent | 9d4859e26cef6c9c79324cfc10126584c94b1585 (diff) | |
download | gitpython-610d4c97485d2c0d4f65b87f2620a84e0df99341.tar.gz |
Merge pull request #692 from Dreamsorcerer/patch-1
Fix broken progress in clone_from()
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/repo/base.py b/git/repo/base.py index 7d27d6cf..990def64 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -930,9 +930,9 @@ class Repo(object): if sep_dir: kwargs['separate_git_dir'] = Git.polish_url(sep_dir) proc = git.clone(Git.polish_url(url), clone_path, with_extended_output=True, as_process=True, - v=True, **add_progress(kwargs, git, progress)) + v=True, universal_newlines=True, **add_progress(kwargs, git, progress)) if progress: - handle_process_output(proc, None, progress.new_message_handler(), finalize_process) + handle_process_output(proc, None, progress.new_message_handler(), finalize_process, decode_streams=False) else: (stdout, stderr) = proc.communicate() log.debug("Cmd(%s)'s unused stdout: %s", getattr(proc, 'args', ''), stdout) |