Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc8e914e

Browse files
committed
cmd,#525: Always include stdout+stderr in exceptions
+ Ignore `with_extended_output` arg when reaising the exception, keepits behavior when `status==0`.
1 parent5e6827e commitc8e914e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎git/cmd.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,10 +649,7 @@ def as_text(stdout_value):
649649
# END handle debug printing
650650

651651
ifwith_exceptionsandstatus!=0:
652-
ifwith_extended_output:
653-
raiseGitCommandError(command,status,stderr_value,stdout_value)
654-
else:
655-
raiseGitCommandError(command,status,stderr_value)
652+
raiseGitCommandError(command,status,stderr_value,stdout_value)
656653

657654
ifisinstance(stdout_value,bytes)andstdout_as_string:# could also be output_stream
658655
stdout_value=safe_decode(stdout_value)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp