summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2016-05-26 18:52:38 +0200
committerSebastian Thiel <byronimo@gmail.com>2016-05-26 18:52:38 +0200
commit04ff96ddd0215881f72cc532adc6ff044e77ea3e (patch)
treed06a4b75adbc861997db9fb8f150c7b4535d95f9
parentb9a7dc5fe98e1aa666445bc240055b21ed809824 (diff)
downloadgitpython-04ff96ddd0215881f72cc532adc6ff044e77ea3e.tar.gz
fix(remote): real-time reading of lines from stderr
That way, progress usage will behave as expected. Fixes #444
-rw-r--r--git/remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/remote.py b/git/remote.py
index 6a22768d..bff26459 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -550,7 +550,7 @@ class Remote(LazyMixin, Iterable):
progress_handler = progress.new_message_handler()
- for line in proc.stderr.readlines():
+ for line in proc.stderr:
line = line.decode(defenc)
for pline in progress_handler(line):
if line.startswith('fatal:') or line.startswith('error:'):