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?