summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-12 09:24:55 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-12 09:24:55 +0100
commit678821a036c04dfbe331d238a7fe0223e8524901 (patch)
tree708069fc19fbfbdde1875c1c98b897132d9eba7f /git/cmd.py
parent6404168e6f990462c32dbe5c7ac1ec186f88c648 (diff)
parent48f5476867d8316ee1af55e0e7cfacacbdf0ad68 (diff)
downloadgitpython-678821a036c04dfbe331d238a7fe0223e8524901.tar.gz
Merge pull request #198 from folti/0.3
GitRunCommand exception can store stdout output too.
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 73126fba..c803fbd2 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -380,7 +380,10 @@ class Git(LazyMixin):
# END handle debug printing
if with_exceptions and status != 0:
- raise GitCommandError(command, status, stderr_value)
+ if with_extended_output:
+ raise GitCommandError(command, status, stderr_value, stdout_value)
+ else:
+ raise GitCommandError(command, status, stderr_value)
# Allow access to the command's status code
if with_extended_output: