Merge pull request #676 from pre-commit/no_pager

Invoke `git diff` without a pager
This commit is contained in:
Anthony Sottile
2018-01-07 21:24:09 -08:00
committed by GitHub

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