Re: git push question
On Mar 7, 2010, at 06:41 , Mahesh Vaidya wrote:
Show 6 quoted lines
> I have discovered that one can set up property like
> "git config user.name piglet "
> and commit will show this fictitious name instead real name forvaidya@gmail.com
>
> How do I ensure that a correct name is stuck at the time
> receive-pack operation when user pushes changes to auth repository
You can write a pre-receive hook, which runs on the remote repository, to validate the all incoming commits have recognized committer names/e-mail addresses. If they don't, the hook can reject the receive-pack.
--
BJ