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

Unified Diff: git_common.py

Issue 225433003: Add a basic tutorial for the tools in depot_tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@git_map
Patch Set: pylint Created 6 years, 8 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 | « docs/src/prep_demo_repo.sh ('k') | git_nav_downstream.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_common.py
diff --git a/git_common.py b/git_common.py
index e164ba9865792187f816f852e956a211cdef62bd..d730fed7f9239a4fed47d7ee36391f5dc19024bf 100644
--- a/git_common.py
+++ b/git_common.py
@@ -473,7 +473,7 @@ def run_stream(*cmd, **kwargs):
"""
kwargs.setdefault('stderr', subprocess2.VOID)
kwargs.setdefault('stdout', subprocess2.PIPE)
- cmd = (GIT_EXE,) + cmd
+ cmd = (GIT_EXE, '-c', 'color.ui=never') + cmd
proc = subprocess2.Popen(cmd, **kwargs)
return proc.stdout
@@ -493,7 +493,7 @@ def run_with_stderr(*cmd, **kwargs):
autostrip = kwargs.pop('autostrip', True)
indata = kwargs.pop('indata', None)
- cmd = (GIT_EXE,) + cmd
+ cmd = (GIT_EXE, '-c', 'color.ui=never') + cmd
proc = subprocess2.Popen(cmd, **kwargs)
ret, err = proc.communicate(indata)
retcode = proc.wait()
« no previous file with comments | « docs/src/prep_demo_repo.sh ('k') | git_nav_downstream.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698