Skip to content

Commit

Permalink
Merge branch 'jk/daemon-user-doc' into maint
Browse files Browse the repository at this point in the history
* jk/daemon-user-doc:
  doc: clarify that "git daemon --user=<user>" option does not export HOME=~user
  • Loading branch information
Junio C Hamano committed Apr 22, 2013
2 parents be9d07f + 714d258 commit 34ab7fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Documentation/git-daemon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>::
Expand Down

0 comments on commit 34ab7fc

Please sign in to comment.