Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 029ccc4

Browse files
committed
Invoke git diff without a pager
1 parent 04aef9e commit 029ccc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit/commands/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _run_hooks(config, repo_hooks, args, environ):
193193
subprocess.call(('git', 'diff', '--quiet', '--no-ext-diff')) != 0
194194
):
195195
print('All changes made by hooks:')
196-
subprocess.call(('git', 'diff', '--no-ext-diff'))
196+
subprocess.call(('git', '--no-pager', 'diff', '--no-ext-diff'))
197197
return retval
198198

199199

0 commit comments

Comments
 (0)