Title: Hooks not installed in the right hooks directory for worktrees · Issue #808 · pre-commit/pre-commit · GitHub
Open Graph Title: Hooks not installed in the right hooks directory for worktrees · Issue #808 · pre-commit/pre-commit
X Title: Hooks not installed in the right hooks directory for worktrees · Issue #808 · pre-commit/pre-commit
Description: When on a git worktree, the hooks are not installed on the right hook dir: ❯ pre-commit install pre-commit installed at /home/vampas/projects/SaltStack/console/raas/.git/worktrees/revan1/hooks/pre-commit The hook does not run. The hook o...
Open Graph Description: When on a git worktree, the hooks are not installed on the right hook dir: ❯ pre-commit install pre-commit installed at /home/vampas/projects/SaltStack/console/raas/.git/worktrees/revan1/hooks/pre-...
X Description: When on a git worktree, the hooks are not installed on the right hook dir: ❯ pre-commit install pre-commit installed at /home/vampas/projects/SaltStack/console/raas/.git/worktrees/revan1/hooks/pre-...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/808
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hooks not installed in the right hooks directory for worktrees","articleBody":"When on a git worktree, the hooks are not installed on the right hook dir:\r\n```\r\n❯ pre-commit install\r\npre-commit installed at /home/vampas/projects/SaltStack/console/raas/.git/worktrees/revan1/hooks/pre-commit\r\n```\r\nThe hook does not run.\r\n\r\nThe hook only runs when I moved the `pre-commit` script to `/home/vampas/projects/SaltStack/console/raas/.git/hooks/pre-commit`\r\n\r\n```\r\n❯ pre-commit --version\r\npre-commit 1.10.4\r\n```","author":{"url":"https://github.com/s0undt3ch","@type":"Person","name":"s0undt3ch"},"datePublished":"2018-08-06T10:39:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/808/pre-commit/issues/808"}
| 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:42b3c310-da84-dc33-dba4-591a447b8dc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C0C8:1749AA:6D09F8:94764C:6A570F20 |
| html-safe-nonce | fa805c169d8615fcb13a99a73c57952bec2b812125bb647b2e82e99c0f2f8397 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMEM4OjE3NDlBQTo2RDA5Rjg6OTQ3NjRDOjZBNTcwRjIwIiwidmlzaXRvcl9pZCI6IjgzMDI5MzU2NzA2NTU0ODc3NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 159b8021f3d96f7a56a94876af2b923d1d0494ef818481f50ba3bc79afefd10f |
| hovercard-subject-tag | issue:347870469 |
| github-keyboard-shortcuts | repository,issues,commits,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/pre-commit/pre-commit/808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33f54bac046603bf1637b7e48d476b7e792b51f73dd6dac99c6bfc8dbe0545f6/pre-commit/pre-commit/issues/808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33f54bac046603bf1637b7e48d476b7e792b51f73dd6dac99c6bfc8dbe0545f6/pre-commit/pre-commit/issues/808 |
| og:image:alt | When on a git worktree, the hooks are not installed on the right hook dir: ❯ pre-commit install pre-commit installed at /home/vampas/projects/SaltStack/console/raas/.git/worktrees/revan1/hooks/pre-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s0undt3ch |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width