-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pre-push hook not working due to git-lfs? #356
Comments
@jclaessens97 thank you for the issue! I see the two problems in your issue:
Answers:
UPD: Added a |
For point 2, I lowkey was expecting it to be something else, but I couldn't find anything about it, so great it's now added to the docs 👍🏻 For point 1, uninstalling git-lfs completely with homebrew seemed to fix it for now. That is until I have to use git-lfs again for another repo ofcourse 😄 |
Summary
When I try to configure
pre-push
hook, it complains aboutgit-lfs
, but my repo doesn't usegit-lfs
.pre-commit
hook works perfectly. When actually trying to push a commit with a staged file I know will fail, it just works and pushes anyway.Steps to reproduce
npx lefthook install
npx lefthook run pre-push
Expected results
Actual results
Possible Solution
I already tried "uninstalling" git lfs using
git lfs uninstall
and then I get the following output:The text was updated successfully, but these errors were encountered: