mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
Merge pull request #676 from pre-commit/no_pager
Invoke `git diff` without a pager
This commit is contained in:
commit
a18e0af0d2
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ def _run_hooks(config, repo_hooks, args, environ):
|
||||||
subprocess.call(('git', 'diff', '--quiet', '--no-ext-diff')) != 0
|
subprocess.call(('git', 'diff', '--quiet', '--no-ext-diff')) != 0
|
||||||
):
|
):
|
||||||
print('All changes made by hooks:')
|
print('All changes made by hooks:')
|
||||||
subprocess.call(('git', 'diff', '--no-ext-diff'))
|
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue