{"thread":{"id":"22937","subject":"git push question","startedAt":"2010-03-07T11:41:42Z","lastAt":"2010-03-07T11:52:30Z","messageCount":2,"participants":["Mahesh Vaidya","BJ Hargrave"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"136294","messageId":"b42431c81003070341u4a89578aw4357e7aef84ffb61@mail.gmail.com","threadId":"22937","inReplyTo":null,"subject":"git push question","fromName":"Mahesh Vaidya","fromEmail":"forvaidya@gmail.com","sentAt":"2010-03-07T11:41:42Z","receivedAt":"2010-03-07T11:41:42Z","isPatch":false,"sender":{"key":"forvaidya@gmail.com","avatar":null},"body":"   Hi\n\n   I am asked to explore GiT as version control tool by my employer.\n\n   I have discovered that one can set up property like\n   \"git config user.name piglet \"\nand commit will show this fictitious name instead real name forvaidya@gmail.com\n\n   How do I ensure that a correct name is stuck at the time\nreceive-pack operation when user pushes changes to auth repository\n\n-Mahesh\n"},{"id":"136295","messageId":"00512306-B7AE-4A63-B5DD-492F3720A8CC@bjhargrave.com","threadId":"22937","inReplyTo":"b42431c81003070341u4a89578aw4357e7aef84ffb61@mail.gmail.com","subject":"Re: git push question","fromName":"BJ Hargrave","fromEmail":"bj@bjhargrave.com","sentAt":"2010-03-07T11:52:30Z","receivedAt":"2010-03-07T11:52:30Z","isPatch":false,"sender":{"key":"bj@bjhargrave.com","avatar":"https://gravatar.com/avatar/48e60c01177c0e8d3e60c996d54fbe36cf70058efcdd020375b4055e34fc05d7?d=mp&s=160"},"body":"On Mar 7, 2010, at 06:41 , Mahesh Vaidya wrote:\n\n>    I have discovered that one can set up property like\n>    \"git config user.name piglet \"\n> and commit will show this fictitious name instead real name forvaidya@gmail.com\n> \n>    How do I ensure that a correct name is stuck at the time\n> receive-pack operation when user pushes changes to auth repository\n\nYou 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.\n\n-- \n\nBJ\n"}]}