diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-12 09:24:55 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-12 09:24:55 +0100 |
commit | 678821a036c04dfbe331d238a7fe0223e8524901 (patch) | |
tree | 708069fc19fbfbdde1875c1c98b897132d9eba7f /git/cmd.py | |
parent | 6404168e6f990462c32dbe5c7ac1ec186f88c648 (diff) | |
parent | 48f5476867d8316ee1af55e0e7cfacacbdf0ad68 (diff) | |
download | gitpython-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.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |