From 78f3f38d18fc88fd639af8a6c1ef757d2ffe51d6 Mon Sep 17 00:00:00 2001 From: Barry Scott Date: Sun, 29 May 2016 13:59:53 +0100 Subject: Return stderr lines from a pull() call that fails --- git/remote.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'git/remote.py') 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 -- cgit v1.2.1