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
commit a18e0af0d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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