mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Adjust messaging slightly
This commit is contained in:
parent
71a740d65d
commit
668e6415c0
1 changed files with 6 additions and 5 deletions
|
|
@ -217,12 +217,13 @@ def _run_hooks(config, hooks, args, environ):
|
||||||
if retval and args.show_diff_on_failure and git.has_diff():
|
if retval and args.show_diff_on_failure and git.has_diff():
|
||||||
if args.all_files:
|
if args.all_files:
|
||||||
output.write_line(
|
output.write_line(
|
||||||
'Pre-commit hook(s) made changes. '
|
'pre-commit hook(s) made changes.\n'
|
||||||
'If you are seeing this message on CI,'
|
'If you are seeing this message in CI, '
|
||||||
' reproduce locally with: pre-commit run --all-files',
|
'reproduce locally with: `pre-commit run --all-files`.\n'
|
||||||
|
'To run `pre-commit` as part of git workflow, use '
|
||||||
|
'`pre-commit install`.',
|
||||||
)
|
)
|
||||||
else:
|
output.write_line('All changes made by hooks:')
|
||||||
output.write_line('All changes made by hooks:')
|
|
||||||
subprocess.call(('git', '--no-pager', '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