I'm currently adding a commit-msg hook that will add the git commit URL as a comment to Jira. The commit URL has the format
http://[server]/[group]/[project]/commit/[commit_id]
Is it possible to obtain the commit id or is it only produced after the item has been committed? Does this mean I need to implement this in a later hook?