evilmartians / lefthook

Fast and powerful Git hooks manager for any type of projects.
MIT License
4.66k stars 211 forks source link

Fix missing sub directory #768

Closed nikeee closed 1 month ago

nikeee commented 1 month ago

Having issues after upgrading:

The application resides in a sub directory, but lefthook tires to execute the binary in the project root:

.git/hooks/pre-commit: 37: /home/$PROJECT/node_modules/lefthook-linux-x64/bin/lefthook: not found
# actual location:
# /home/$PROJECT/frontend/node_modules/lefthook-linux-x64/bin/lefthook

:ballot_box_with_check: Checklist

I think it was a copy&paste error. Feel free to just close this PR if it's bogus.

mrexox commented 1 month ago

Thank you for this finding!