mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Advise user to unset core.hooksPath git config globally as well as locally
This commit is contained in:
parent
5e11c266ae
commit
635b555366
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ def install(
|
|||
if git_dir is None and git.has_core_hookpaths_set():
|
||||
logger.error(
|
||||
'Cowardly refusing to install hooks with `core.hooksPath` set.\n'
|
||||
'hint: `git config --unset-all core.hooksPath`',
|
||||
'hint: `git config --unset-all core.hooksPath && git config --unset-all --global core.hooksPath`',
|
||||
)
|
||||
return 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue