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

Unified Diff: scm.py

Issue 14104005: Fix 236148: Avoid triggering a pager in internal git commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Fixed some tests and other calls too. Created 7 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 | « git_cl.py ('k') | tests/git_cl_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scm.py
diff --git a/scm.py b/scm.py
index 42df43c1ea06c21f300287bf77e223708bc3e6e9..4e9c11c7cf12c67c8ecfd6bcf0d45d75a2f85207 100644
--- a/scm.py
+++ b/scm.py
@@ -99,7 +99,8 @@ class GIT(object):
@staticmethod
def Capture(args, cwd, **kwargs):
return subprocess2.check_output(
- ['git'] + args, cwd=cwd, stderr=subprocess2.PIPE, **kwargs)
+ ['git', '--no-pager'] + args,
+ cwd=cwd, stderr=subprocess2.PIPE, **kwargs)
@staticmethod
def CaptureStatus(files, cwd, upstream_branch):
« no previous file with comments | « git_cl.py ('k') | tests/git_cl_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698