You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit hooks don't respect core.hooksPath in config. #2083
Commit hooks are more-or-less hardcoded to use hooks found in .git/hooks. This means that specifying core.hooksPath in any git config file (i.e. /etc/gitconfig, ~/.gitconfig, ~/git/config, $REPO/.git/config) has no effect. Is this by design?
Activity
Byron commentedon Nov 24, 2025
Thanks for reporting and raising awareness.
This clearly is a shortcoming, and it's likely that this configuration value didn't exist when this code was written.
fix: respect core.hooksPath for commit hooks
Address review feedback about hook resolution (gitpython-developers#2083