On Thu, Feb 26, 2009 at 09:28:59PM -0600, Adam Mercer <ramercer@xxxxxxxxx> wrote: > We are in the process of migrating some of our repositories from CVS > to Git in a two step process, first to a centralised Git setup then > (hopefully) onto a more distributed development model. In the testing > we have been doing so far the only problem we have run into is > developers not setting their email addresses correctly so the > changelogs are filled with spurious address. Does anyone know of a > pre-commit hook that could check for a valid email address prior to > allowing a commit? Or another way that this can be acheived? You can use a script like this: http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/ckaddr.gz Other helpful git commands to get the current email address: git var GIT_AUTHOR_IDENT git config user.name git config user.email You can do the rest, hopefully. :)
Attachment:
pgpe6kDEv7G9X.pgp
Description: PGP signature