typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
31.69k stars 996 forks source link

`export HUSKY=0` in a config has no effect #1393

Closed alecmev closed 3 months ago

alecmev commented 3 months ago

$HUSKY is evaluated before the configs are sourced, so its presence doesn't trigger exit 0:

https://github.com/typicode/husky/blob/095a4fefbb6b9e57f22bd96f3db0577f5ed427b3/husky#L2-L14

Are the docs out-ot-date and I'm expected to put export H=0 in init.sh? Or something else is wrong?

typicode commented 3 months ago

Good catch. It's a bug. It was moved there to fix #1358. I'll publish a new version.

typicode commented 3 months ago

Should be good :+1:

alecmev commented 3 months ago

It is, thank you!