Re: [PATCH] Expand ~ and ~user in core.excludesfile, commit.template
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Nov 18, 2009, 00:42 UTC
- Message-ID
- <m2bpj03bpn.fsf@igel.home>
- In-Reply-To
- <7v8we4er0t.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 24 quoted lines
> Andreas Schwab <schwab@linux-m68k.org> writes: > >> Mike Hommey <mh@glandium.org> writes: >> >>> On Tue, Nov 17, 2009 at 02:34:26AM -0500, Jeff King wrote: >>>> Maybe: >>>> >>>> A leading path component of "~user" is expanded to the home directory >>>> of "user"; "~" is expanded to the home directory of the user running >>>> git. >>>> >>>> would be more clear? >>> >>> Add "real" before "user running git" and you have my vote. Or maybe >>> using the effective user would be better, and the patch should use >>> geteuid() instead of getuid(), I don't know. ident.c uses getuid(), but >>> I'm wondering if that's what it should use (although it doesn't seem to >>> have been a problem to anyone) >> >> "~" should just expand to the value of $HOME, like in the shell, >> independent of the real home directory of the real or effective user. > > How should this interact with installations that run gitosis/gitlite that > use shared account, giving user identity via the ssh key?
Sorry, I don't know enough about such an installation to be able to answer that.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."