fix: respect core.hooksPath for commit hooks · gitpython-developers/GitPython@406b98e · GitHub
Skip to content

Commit 406b98e

Browse files
SiestaByron
authored andcommitted
fix: respect core.hooksPath for commit hooks
Use git rev-parse --git-path when resolving commit hook paths so GitPython follows Git's core.hooksPath configuration.\n\nAdd regression coverage for a pre-commit hook stored in a custom hooks path.\n\nFixes #2083
1 parent 5bc2560 commit 406b98e

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

git/index/fun.py

Lines changed: 11 additions & 1 deletion

test/test_index.py

Lines changed: 26 additions & 0 deletions

0 commit comments

Comments
 (0)