Merge branch 'jk/daemon-user-doc' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Apr 2013 18:26:58 +0000 (11:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Apr 2013 18:26:58 +0000 (11:26 -0700)
* jk/daemon-user-doc:
doc: clarify that "git daemon --user=<user>" option does not export HOME=~user

1  2 
Documentation/git-daemon.txt
index 77da564134f92e692e078888d7f87bd6710e821f,2ac07ba509c5036d30e42d3044782e3fd58112f3..bfb106cccd5880f0cd40b03059aa79a5569acb63
@@@ -3,7 -3,7 +3,7 @@@ git-daemon(1
  
  NAME
  ----
 -git-daemon - A really simple server for git repositories
 +git-daemon - A really simple server for Git repositories
  
  SYNOPSIS
  --------
  
  DESCRIPTION
  -----------
 -A really simple TCP git daemon that normally listens on port "DEFAULT_GIT_PORT"
 +A really simple TCP Git daemon that normally listens on port "DEFAULT_GIT_PORT"
  aka 9418.  It waits for a connection asking for a service, and will serve
  that service if it is enabled.
  
  It verifies that the directory has the magic file "git-daemon-export-ok", and
 -it will refuse to export any git directory that hasn't explicitly been marked
 +it will refuse to export any Git directory that hasn't explicitly been marked
  for export this way (unless the '--export-all' parameter is specified). If you
  pass some directory paths as 'git daemon' arguments, you can further restrict
  the offers to a whitelist comprising of those.
@@@ -37,7 -37,7 +37,7 @@@ By default, only `upload-pack` service 
  from 'git fetch', 'git pull', and 'git clone'.
  
  This is ideally suited for read-only updates, i.e., pulling from
 -git repositories.
 +Git repositories.
  
  An `upload-archive` also exists to serve 'git archive'.
  
@@@ -51,7 -51,7 +51,7 @@@ OPTION
  
  --base-path=<path>::
        Remap all the path requests as relative to the given path.
 -      This is sort of "GIT root" - if you run 'git daemon' with
 +      This is sort of "Git root" - if you run 'git daemon' with
        '--base-path=/srv/git' on example.com, then if you later try to pull
        'git://example.com/hello.git', 'git daemon' will interpret the path
        as '/srv/git/hello.git'.
@@@ -73,7 -73,7 +73,7 @@@
        whitelist.
  
  --export-all::
 -      Allow pulling from all directories that look like GIT repositories
 +      Allow pulling from all directories that look like Git repositories
        (have the 'objects' and 'refs' subdirectories), even if they
        do not have the 'git-daemon-export-ok' file.
  
  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>::