From: Junio C Hamano Date: Fri, 12 Apr 2013 16:08:31 GMT Subject: Re: regression: "96b9e0e3 config: treat user and xdg config permission problems as errors" busted git-daemon Message-ID: <7vk3o7g29s.fsf@alter.siamese.dyndns.org> In-Reply-To: <20130412144855.GA17968@sigill.intra.peff.net> Jeff King writes: >> How about "and make sure any Git configuration files", since there >> might not be any Git configuration files. > > Yeah, that is better. Thanks. OK, then... -- >8 -- Subject: [PATCH] doc: clarify that "git daemon --user=" option does not export HOME=~user Signed-off-by: Jeff King Helped-by: W. Trevor King Signed-off-by: Junio C Hamano --- Documentation/git-daemon.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt index 7e5098a..2ac07ba 100644 --- a/Documentation/git-daemon.txt +++ b/Documentation/git-daemon.txt @@ -147,6 +147,13 @@ OPTIONS Giving these options is an error when used with `--inetd`; use the facility of inet daemon to achieve the same before spawning 'git daemon' if needed. ++ +Like many programs that switch user id, the daemon does not reset +environment variables such as `$HOME` when it runs git programs, +e.g. `upload-pack` and `receive-pack`. When using this option, you +may also want to set and export `HOME` to point at the home +directory of `` before starting the daemon, and make sure any +Git configuration files in that directory are readable by ``. --enable=:: --disable=:: -- 1.8.2.1-472-g6c5785c