Hi, In February, 2014, martin f krafft wrote:
> $HOME seems unset when git-daemon starts, which causes > > remote: warning: unable to access '/root/.config/git/attributes': > Permission denied > > to be printed on cloning. > > exporting $HOME e.g. to gitdaemon's home directory, or > $GIT_DAEMON_BASE_PATH fixes this. Maybe the init.d script could do > that? Thanks for reporting, and sorry for the slow reply. gitdaemon's home directory is /nonexistent, so do you mean something like diff --git i/debian/git-daemon-sysvinit.git-daemon.init w/debian/git-daemon-sysvinit.git-daemon.init index cc98a00bad..e1ab4b3947 100644 --- i/debian/git-daemon-sysvinit.git-daemon.init +++ w/debian/git-daemon-sysvinit.git-daemon.init @@ -49,8 +49,10 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started + HOME=/nonexistent \ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 + HOME=/nonexistent \ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 (plus the analogous change for git-daemon-run)? Sincerely, Jonathan