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
Husky not running when .git is in another directory #1437
Comments
I have the same issue |
Same here it is nightmare to set it up. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm trying to use Husky v9 in a folder that has the
.git
folder in the parent folder. There is a specific section in the Husky website about this but I can't get it to work for some reason.My folder structure is as follows
I've installed husky v9 in /docs and tried to run
npx husky init
which added theprepare
script to the package.json but returned ".git can't be found". I went and did the changes specified in the website, but when I try to commit something to do thenpm test
, the commit goes through without husky running.I don't know if maybe the guide isn't updated for v9 or am I installing it wrong or doing something in a different order as it should be.
Any help?
Thank you
The text was updated successfully, but these errors were encountered: