Fix 236148: Avoid triggering a pager in internal git commands.
BUG=236148
Review URL: https://chromiumcodereview.appspot.com/14104005
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@197872 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/scm.py b/scm.py
index 42df43c..4e9c11c 100644
--- a/scm.py
+++ b/scm.py
@@ -99,7 +99,8 @@
@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):