I've been working on a small native application that acts as a Git hook. It is working fine with git from the command line, but I discovered that it seems to have
no effect in Eclipse. I am putting the executable in "%HOME\. githooks\commit-msg. exe"
I've been working on a small native application that acts as a Git hook. It is working fine with git from the command line, but I discovered that it seems to have no effect in Eclipse.
I am putting the executable in "%HOME\.githooks\commit-msg.exe" in Windows, and setting the "core.hooksPath" property in "%HOME%\.gitconfig" to point to that directory. Again, this is all working fine with git from the command line. I can even see that property setting in the "User" tab in Team->Git in preferences. However, when I test with a commit comment that the hook will fail validation on (it checks for a valid JIRA ticket in the comment), the commit in Eclipse goes through without being blocked.
I really hope I'm just doing something wrong, and it's not that EGit doesn't support hooks in global git config.
_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/egit-dev__;!!BhdT!mZ3PAlptYsKBemkt23nL6bRF4IezMrTgacUNYcrDGogWXePCA7gxJ5_FmAaM0r4tkjf6y82h8CQi-Boc$