threads / discuss / 22937

git push question

Subject: git push question

## tl;dr

2 messages between Mar 7, 2010 and Mar 7, 2010.

replies: 1people: 2as markdown or json

Mahesh Vaidya· Mar 7, 2010, 11:41 UTC · lore
   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
BJ Hargrave· Mar 7, 2010, 11:52 UTC · re: Mahesh Vaidya · lore

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

← back to recent threads