Chromium Code Reviews| Index: scm.py |
| diff --git a/scm.py b/scm.py |
| index 7293f83348c2ffd7902492aa5e815c386f897e78..ca7fa3c7abf907335954e19ae69ca37932c985fa 100644 |
| --- a/scm.py |
| +++ b/scm.py |
| @@ -98,9 +98,11 @@ class GIT(object): |
| @staticmethod |
| def Capture(args, cwd, **kwargs): |
| + env = os.environ |
|
M-A Ruel
2013/07/08 19:10:50
same
|
| + env['GIT_PAGER'] = 'cat' # Magical string that disables pagers. |
| return subprocess2.check_output( |
| - ['git', '--no-pager'] + args, |
| - cwd=cwd, stderr=subprocess2.PIPE, **kwargs) |
| + ['git'] + args, |
| + cwd=cwd, stderr=subprocess2.PIPE, env=env, **kwargs) |
| @staticmethod |
| def CaptureStatus(files, cwd, upstream_branch): |