From: BJ Hargrave Date: Sun, 07 Mar 2010 11:52:30 GMT Subject: Re: git push question Message-ID: <00512306-B7AE-4A63-B5DD-492F3720A8CC@bjhargrave.com> In-Reply-To: On Mar 7, 2010, at 06:41 , Mahesh Vaidya wrote: > 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