I am trying to get the commit message during the git pre push hook stage, but it is not retrieving the message during a git push from the git client side. I am trying to use the message to verify whether a push is allowed in a specific repo, and also get the issue number out of the commit message to use for checking Jira.
I based it off the example in the documents, but even checking which user is doing the git push is not working. I would expect it to have returned the hook response to the git client, or at least an error message to the log but I am not getting anything.
I’m currently using version 4.14 with the enterprise trial, does anyone have a working example of a git pre push hook for 4.14? Where can I find what properties of the commit I can access using the hook?