-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different versions cross git worktree #192
Comments
How do you have installed lefthook? Most probably from Ruby gem or NPM? This is probably not Lefthook issue, I believe. |
With npm as a dev-dependency. |
Ok, I found what's wrong. Here we search for lefthook binary relative to hooks directory path which is by default is relative to main worktree: lefthook/cmd/templates/hook.tmpl Lines 11 to 20 in 49e3409
Most probably we need to search relative to current working directory or something like that. |
Fix was just released in 0.7.6 |
Hello
I still encounter an issue with 0.7.5 in a worktree #180
Error message:
It seems to use the lefthook version from the original git directory instead of the curren one.
The text was updated successfully, but these errors were encountered: