git - how do we verify commit messages for a push?
- by shovas
Coming from CVS, we have a policy that commit messages should be tagged with a bug number (simple suffix "... [9999]"). A CVS script checks this during commits and rejects the commit if the message does not conform.
The git hook commit-msg does this on the developer side but we find it helpful to have automated systems check and remind us of this.
During a git push, commit-msg isn't run. Is there another hook during push that could check commit messages?
How do we verify commit messages during a git push?