From: Junio C Hamano Date: Sat, 07 Jun 2008 21:05:13 GMT Subject: Re: [RFC PATCH] Use SUDO_UID to guess committer identity Message-ID: <7v63slnegm.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20080607071130.GZ12896@spearce.org> "Shawn O. Pearce" writes: > 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?