summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-18 18:47:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-18 18:47:23 (GMT)
commit8dd28584a5fe737ca373315f47055f3df2260606 (patch)
treec7aab5907972775fc90b2412f0c5de04ce398a63 /Documentation
parent5734fa4608ada9c1df20ac27988715ee27b36613 (diff)
parent714d25868f156e0969eb8a47e6a1bf3df9c17a5d (diff)
downloadgit-8dd28584a5fe737ca373315f47055f3df2260606.zip
git-8dd28584a5fe737ca373315f47055f3df2260606.tar.gz
git-8dd28584a5fe737ca373315f47055f3df2260606.tar.bz2
Merge branch 'jk/daemon-user-doc'
Document where the configuration is read by the git-daemon when its --user option is used. * jk/daemon-user-doc: doc: clarify that "git daemon --user=<user>" option does not export HOME=~user
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-daemon.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-daemon.txt b/Documentation/git-daemon.txt
index 77da564..bfb106c 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 `<user>` before starting the daemon, and make sure any
+Git configuration files in that directory are readable by `<user>`.
--enable=<service>::
--disable=<service>::