Open
Description
Prerequisites
- I'm using the latest version
- I've read the relevant documentation
- I've searched for existing issues
- I've checked the list of known issues
- I've read the issue reproduction guide
Reproduction url
https://github.com/VanTanev/knip-lefthook-bug-reproduction
Reproduction access
- I've made sure the reproduction is publicly accessible
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.