From: Junio C Hamano Date: Fri, 12 Apr 2013 16:08:31 +0000 (-0700) Subject: doc: clarify that "git daemon --user=" option does not export HOME=~user X-Git-Tag: v1.8.2.2~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=714d25868f156e0969eb8a47e6a1bf3df9c17a5d;p=thirdparty%2Fgit.git doc: clarify that "git daemon --user=" option does not export HOME=~user The fact that we don't set $HOME may confuse admins who expect ~/.gitconfig to be used, because that is not what we try to read. And worse, since 96b9e0e3, a git-daemon started by root is likely to fail to run at all, as the user we switch to generally cannot read ~root. Signed-off-by: Jeff King Helped-by: W. Trevor King Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt index 7e5098a95e..2ac07ba509 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=::