git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git push question
@ 2010-03-07 11:41 Mahesh Vaidya
  2010-03-07 11:52 ` BJ Hargrave
  0 siblings, 1 reply; 2+ messages in thread
From: Mahesh Vaidya @ 2010-03-07 11:41 UTC (permalink / raw)
  To: git

   Hi

   I am asked to explore GiT as version control tool by my employer.

   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

-Mahesh

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git push question
  2010-03-07 11:41 git push question Mahesh Vaidya
@ 2010-03-07 11:52 ` BJ Hargrave
  0 siblings, 0 replies; 2+ messages in thread
From: BJ Hargrave @ 2010-03-07 11:52 UTC (permalink / raw)
  To: Mahesh Vaidya; +Cc: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-07 11:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-07 11:41 git push question Mahesh Vaidya
2010-03-07 11:52 ` BJ Hargrave

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).