-
[email protected] I have configured a pre-commit hook in my project with husky. And it works fine commiting through a system terminal. However, when I try to commit through Gitkraken UI, the commit is rejected and its console reports:
I know it could be an issue that has nothing to do with husky, but it worked before when I used husky 8 😣. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
For any one with the same error: I have removed node_modules folder and reinstalled the project, and now the error became to:
But this time, it was easy to fix: just configuring in GitKraken to use the external Windows git (instead of the bundled one) in File > Preferences > Experimental > Git Executable. And now it works! |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue but unfortunately, nuking node_modules didn't get me anywhere. I also nuked the lock file for good measure, after only nuking node_modules with no change, but that didn't make a difference either. I'm still having the same error log
Let me know if I missed any relevant environment info. Also, I realize this is most likely a GitKraken issue, and I've reported this to their support team, but figured it might be worth documenting here as well for posterity. Thanks! |
Beta Was this translation helpful? Give feedback.
For any one with the same error: I have removed node_modules folder and reinstalled the project, and now the error became to:
But this time, it was easy to fix: just configuring in GitKraken to use the external Windows git (instead of the bundled one) in File > Preferences > Experimental > Git Executable.
And now it works!