8000 added support for GIT_PYTHON_TRACE=='full', thx to SRabbelier for the… · codepongo/GitPython@f347c6d · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit f347c6d

Browse files
committed
added support for GIT_PYTHON_TRACE=='full', thx to SRabbelier for the suggestion
1 parent 93ad8da commit f347c6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/git/cmd.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def execute(self, command,
8484
tuple(int(status), str(output)) # with_status = True
8585
"""
8686

87-
if GIT_PYTHON_TRACE:
88-
print command
87+
if GIT_PYTHON_TRACE and not GIT_PYTHON_TRACE == 'full':
88+
print ' '.join(command)
8989

9090
# Allow stderr to be merged into stdout when with_stderr is True.
9191
# Otherwise, throw stderr away.
@@ -117,6 +117,9 @@ def execute(self, command,
117117
raise GitCommandError("%s returned exit status %d"
118118
% (str(command), status))
119119

120+
if GIT_PYTHON_TRACE == 'full':
121+
print "%s %d: '%s'" % (command, status, stdout_value)
122+
120123
# Allow access to the command's status code
121124
if with_status:
122125
return (status, stdout_value)

0 commit comments

Comments
 (0)
0