GitPython icon indicating copy to clipboard operation
GitPython copied to clipboard

Commit hooks don't respect core.hooksPath in config.

Open DevAndrewGeorge opened this issue 1 month ago • 1 comments

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?

DevAndrewGeorge avatar Nov 23 '25 22:11 DevAndrewGeorge

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.

Byron avatar Nov 24 '25 03:11 Byron