Invoke git diff without a pager

This commit is contained in:
Anthony Sottile
2018-01-07 20:56:17 -08:00
parent 04aef9e78c
commit 029ccc47c8

View File

@@ -193,7 +193,7 @@ def _run_hooks(config, repo_hooks, args, environ):
subprocess.call(('git', 'diff', '--quiet', '--no-ext-diff')) != 0
):
print('All changes made by hooks:')
subprocess.call(('git', 'diff', '--no-ext-diff'))
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
return retval