Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: gclient_scm.py

Issue 218993009: Use CheckCallAndFilterAndHeader for git commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Fix test cases. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/gclient_smoketest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_scm.py
diff --git a/gclient_scm.py b/gclient_scm.py
index fd098e2405f4cfb17e4a20d2fc8618f3300f9a5e..0b109828ed211424d92dfb5bd5df109eb1cb83c4 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -962,10 +962,8 @@ class GitWrapper(SCMWrapper):
env.setdefault('SSH_ASKPASS', 'true')
else:
kwargs.setdefault('print_stdout', True)
- stdout = kwargs.get('stdout', sys.stdout)
- stdout.write('\n________ running \'git %s\' in \'%s\'\n' % (
- ' '.join(args), kwargs['cwd']))
- return gclient_utils.CheckCallAndFilter(['git'] + args, **kwargs)
+ cmd = ['git'] + args
+ return gclient_utils.CheckCallAndFilterAndHeader(cmd, **kwargs)
class SVNWrapper(SCMWrapper):
« no previous file with comments | « no previous file | tests/gclient_smoketest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698