Advise user to unset core.hooksPath git config globally as well as locally

This commit is contained in:
Adolfo Rodriguez 2024-03-08 10:50:44 -08:00 committed by GitHub
parent 5e11c266ae
commit 635b555366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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