Sometimes developers forget to set their user name while committing with git. You may force them by controlling the committer name and the user name used with authentication system. (see gitolite installation.)
Following code also makes use of a ruby script called "geera" to send commit messages to jira issues, check format of commit message etc.
You may define a hook as shown below: