As the title says .. I am trying to set up a commit-msg hook in an eclipse project/git repo. I just added the script into my .git folder and from the command line the hook triggers, and i get my Error message.
#!/bin/bash
ISSUE_KEY=`some-regex`
if [ "" == "$ISSUE_KEY" ]; then
echo 'Commit rejected - Please edit your commit message'
exit 1;
fi
in Eclipse the hook didnt trigger at first, but after i installed Cygwin, it worked. The Problem is though, that i just get a default prompt saying
Commit was aborted by hook - Rejected by "commit-msg" hook
And not the message from the "echo output". Is there a way to customize my Error message for egit?