lefthook install
does not seem to recreate .git/hooks if it has been deleted
#571
Labels
bug
Something isn't working
🔧 Summary
I'm working on moving us from another git hook tool to lefthook, so I've been testing how the git hooks get setup so I can make sure it works consistently. In doing that, I end up doing
rm -r .git/hooks
quite a bit.I would have expected
lefthook install
to do that, but instead it exits silently and successfully. If I dolefthook install --force
, it does not recreate the filesLefthook version
1.5.2
Steps to reproduce
lefthook install
lefthook install
rm .git/hooks/*
lefthook install
Expected results
For the last lefthook after the rm:
Actual results
Possible Solution
I think it has to do with doing a checksum of the lefthook configuration. If I make any changes, it does seem to work as expected.
Logs / Screenshots
The text was updated successfully, but these errors were encountered: