Friday, April 15, 2011

A pre-receive hook to check if comitter name and authentication name are equal

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:

1 comment: