toplenboren / simple-git-hooks

A simple git hooks manager for small projects
MIT License
1.32k stars 43 forks source link

Doesn't work with git worktrees #58

Closed niklaas closed 1 year ago

niklaas commented 3 years ago

I get the following errror

ENOENT: no such file or directory, open '/Users/niklaas/git/abc/def/.git/worktrees/<name of worktree>/hooks/pre-commit'

when running npx simple-pre-commit inside a git worktree.

toplenboren commented 3 years ago

Yep, I think we do not support any custom git configurations right now. Thanks for the issue