Title: Commit hooks don't respect core.hooksPath in config. · Issue #2083 · gitpython-developers/GitPython · GitHub
Open Graph Title: Commit hooks don't respect core.hooksPath in config. · Issue #2083 · gitpython-developers/GitPython
X Title: Commit hooks don't respect core.hooksPath in config. · Issue #2083 · gitpython-developers/GitPython
Description: 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 des...
Open Graph Description: 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/.g...
X Description: 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/.g...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2083
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Commit hooks don't respect core.hooksPath in config.","articleBody":"[Commit hooks are more-or-less hardcoded](https://github.com/gitpython-developers/GitPython/blob/main/git/index/fun.py#L85) 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?","author":{"url":"https://github.com/AndrewDoesNotComute","@type":"Person","name":"AndrewDoesNotComute"},"datePublished":"2025-11-23T22:08:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2083/GitPython/issues/2083"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6963ab44-3ac6-21ce-e346-65a8011f8f08 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6EC:511EE:17DDCF:20748B:696965C2 |
| html-safe-nonce | c7d85cc336076ee7ed55821377e166742cd19bce5dd5c74d54d331ace2eeca3b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkVDOjUxMUVFOjE3RERDRjoyMDc0OEI6Njk2OTY1QzIiLCJ2aXNpdG9yX2lkIjoiNjQyNjY2NjI3MDk0MDgxNjgzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c97dbd1432170ce3f511671b1a62587a614bd67999797da514d5d9d7c1b2afca |
| hovercard-subject-tag | issue:3656521140 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2083/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4597353163142c93413aae4810d010e3f5bd61731b3ae5f080e7b52b6c73ceed/gitpython-developers/GitPython/issues/2083 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4597353163142c93413aae4810d010e3f5bd61731b3ae5f080e7b52b6c73ceed/gitpython-developers/GitPython/issues/2083 |
| og:image:alt | 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/.g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AndrewDoesNotComute |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 669463fcc54773a88c1f5a44eef6b99a5504b9c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width