mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
writing tests for custom core hooksPaths
This commit is contained in:
parent
1c8fe57b66
commit
026e10bcc1
3 changed files with 40 additions and 2 deletions
|
|
@ -146,7 +146,8 @@ def install(
|
|||
if not follow_hooks_path:
|
||||
logger.error(
|
||||
'Cowardly refusing to install hooks with `core.hooksPath` set.'
|
||||
'\nhint: `git config --unset-all core.hooksPath`',
|
||||
'\nhint: `git config --unset-all core.hooksPath`, '
|
||||
'or use the `--follow-custom-hooks-path` flag',
|
||||
)
|
||||
return 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue