We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e6827e commit c8e914eCopy full SHA for c8e914e
git/cmd.py
@@ -649,10 +649,7 @@ def as_text(stdout_value):
649
# END handle debug printing
650
651
if with_exceptions and status != 0:
652
- if with_extended_output:
653
- raise GitCommandError(command, status, stderr_value, stdout_value)
654
- else:
655
- raise GitCommandError(command, status, stderr_value)
+ raise GitCommandError(command, status, stderr_value, stdout_value)
656
657
if isinstance(stdout_value, bytes) and stdout_as_string: # could also be output_stream
658
stdout_value = safe_decode(stdout_value)
0 commit comments