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

Re: [RFC PATCH] Use SUDO_UID to guess committer identity

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 7, 2008, 21:05 UTC
Message-ID
<7v63slnegm.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080607071130.GZ12896@spearce.org>
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 9 quoted lines
> When invoking Git commands though sudo against a bare repository
> with reflogs enabled we should attempt to record the actual user's
> information in the reflog, not the identity of the user sudo entered.
>
> For example when executing:
>
> 	sudo -u gitadm git --git-dir=/srv/git.git branch -f pu master
>
> We want record information about the caller of sudo, not gitadm.

If you are using something esoteric like pseudo, isn't it too much to ask to also use existing GIT_COMMITTER_NAME, or are there reasons why it is not sufficient?

Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 2 of 4 in “Use SUDO_UID to guess committer identity”
  1. Use SUDO_UID to guess committer identityShawn O. Pearce, Jun 7, 2008
  2. Junio C HamanoJun 7, 2008
  3. Shawn O. PearceJun 8, 2008
  4. Junio C HamanoJun 8, 2008

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.