From 029ccc47c854e21d32344f7b47865013ae55270f Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 7 Jan 2018 20:56:17 -0800 Subject: [PATCH] Invoke `git diff` without a pager --- pre_commit/commands/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/run.py b/pre_commit/commands/run.py index 4cbc99bb..3a08c8d8 100644 --- a/pre_commit/commands/run.py +++ b/pre_commit/commands/run.py @@ -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