Husky not committing files modified by pre-commit scripts #1392
Unanswered
binaryfire
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all
I'm having some issues with Husky and bash aliases / shortcuts. I've got a
gacp "commit message"
shortcut set up to add / commit (with message) / push.I've added a pre-commit command in Husky to run my linters. When I run
gacp
I don't get any errors, but Husky doesn't actually commit the versions of the files modified by the linters. It seems to commit prior to the linter's changes.Is this a bug or the expected behavior for the pre-commit hook? And are there any workarounds?
Beta Was this translation helpful? Give feedback.
All reactions