summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/git/remote.py b/git/remote.py
index f23f50a2..1ef62409 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -646,6 +646,10 @@ class Remote(LazyMixin, Iterable):
try:
handle_process_output(proc, stdout_handler, progress_handler, finalize_process)
+ except GitCommandError as err:
+ # convert any error from wait() into the same error with stdout lines
+ raise GitCommandError( err.command, err.status, progress.get_stderr() )
+
except Exception:
if len(output) == 0:
raise