git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git push question

From
BJ Hargrave <bj@bjhargrave.com>
Date
Mar 7, 2010, 11:52 UTC
Message-ID
<00512306-B7AE-4A63-B5DD-492F3720A8CC@bjhargrave.com>
In-Reply-To
<b42431c81003070341u4a89578aw4357e7aef84ffb61@mail.gmail.com>
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
Previous: Mahesh Vaidya
Message 2 of 2 in “git push question”
  1. Mahesh VaidyaMar 7, 2010
  2. BJ HargraveMar 7, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.