git - how do we verify commit messages for a push?

Posted by shovas on Stack Overflow See other posts from Stack Overflow or by shovas
Published on 2010-03-26T14:49:10Z Indexed on 2010/03/26 19:13 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about git

Related posts about push