We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello!
Version 7.4.0
I work with git worktree to be able to work simultaneously on different branches of a project.
git worktree
When I run npx --no-install lefthook install from a worktree, I have this error :
npx --no-install lefthook install
This command must be executed within git repository. Change working directory or initialize new repository with 'git init'.
In a git worktree, .git is not a directory but a file containing :
.git
gitdir: /path/to/original/directory/.git/worktrees/name-of-the-worktree
The text was updated successfully, but these errors were encountered:
Thanks for reporting this and including details! git worktree apparently is one of the things that we should support.
Sorry, something went wrong.
Fix for this has been released in 0.7.5. Enjoy!
@Envek @skryukov Thank you.
I still encounter an issue with 0.7.5 in a worktree.
Same error message:
Maybe a lead to follow:
It seems to use the lefthook version from the original git directory instead of the local one. see #192
Successfully merging a pull request may close this issue.
Hello!
Version 7.4.0
I work with
git worktree
to be able to work simultaneously on different branches of a project.When I run
npx --no-install lefthook install
from a worktree, I have this error :In a git worktree,
.git
is not a directory but a file containing :The text was updated successfully, but these errors were encountered: