You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lefthook install fails when .git/info dir is missing. Workaround is that you mkdir .git/info before running it.
I reckon it a bug as the info dir is not provisioned by default when you just git init in git version 2.39.0. Although I'm not really sure if this is specific to my environment or if there's config by which the info dir is automatically made available, I'd like the fresh installation to run agnostic about it.
🔧 Summary
lefthook install
fails when.git/info
dir is missing. Workaround is that youmkdir .git/info
before running it.I reckon it a bug as the info dir is not provisioned by default when you just
git init
in git version 2.39.0. Although I'm not really sure if this is specific to my environment or if there's config by which the info dir is automatically made available, I'd like the fresh installation to run agnostic about it.Lefthook version
1.2.6 7fa22dd
Steps to reproduce
In any directory run
git init
andlefthook install
.Expected results
Actual results
Possible Solution
I have a working fix and am going to open a PR followingly.
Screenshots (if appropriate)
The text was updated successfully, but these errors were encountered: