Prerequisites
Reproduction url
https://github.com/VanTanev/knip-lefthook-bug-reproduction
Reproduction access
Description of the issue
Reproduction is kind of tedious, because it requires cloning the repo and then creating a git worktree branch checkout.
The issue is that Knip assumes the hooks directory is always .git/hooks, but that is not the case. In a worktree checkout, .git is not a folder but instead a pointer to the real folder.
Prerequisites
Reproduction url
https://github.com/VanTanev/knip-lefthook-bug-reproduction
Reproduction access
Description of the issue
Reproduction is kind of tedious, because it requires cloning the repo and then creating a git worktree branch checkout.
The issue is that Knip assumes the hooks directory is always
.git/hooks, but that is not the case. In a worktree checkout,.gitis not a folder but instead a pointer to the real folder.