mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-17 14:30:05 -06:00
Invoke git diff without a pager
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user