husky
husky copied to clipboard
HUSKY=0 does not stop Husky on Windows
** Problem ** When using Husky on Windows and setting HUSKY=0 the pre-push hooks should not run but they did.
Context
- Using Windows terminal.
- Husky 8.0.3
This should be possible to test with just a pre-push hook that does "echo The pre-push hook ran".
Thank you!
Seems surprising. I would maybe suggest trying to upgrade and verify that the env variable was correctly set by adding echo $HUSKY in your pre-push
I have similar problem with husky v9.1.6 on windows. Even with husky=0 it will still run hooks.
Also need to add #!/usr/bin/env sh to my pre-commit or it randomly run to an error: cannot spawn .husky/pre-commit: No such file or directory