Re: git-daemon breakage in 1.5.4
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Feb 6, 2008, 11:33 UTC
- Message-ID
- <47A99B11.8080506@viscovery.net>
- In-Reply-To
- <47A98092.2070509@viscovery.net>
Johannes Sixt schrieb:
Show 18 quoted lines
> Wincent Colaiuta schrieb: >> Drop the --inetd option and it works with no errors: >> >> # /usr/local/bin/git-daemon --base-path=/blah -- /blah > > When I run git-daemon with a reduced path similar to this: > > PATH=/bin:/usr/bin /usr/local/bin/git-daemon ... > > i.e. git is installed in /usr/local/bin, but it is not in PATH, then I > also get "hung up unexpectedly" from a client that connects to this server. > > Which makes me think that you xinetd doesn't pass a PATH to git-daemon > that includes /usr/local/bin. Add this to your /etc/xinetd.d/git: > > env = PATH=/bin:/usr/bin:/usr/local/bin > > (not tested).
And if I run it this way:
PATH=/bin:/usr/bin /usr/local/bin/git daemon ...
(notice the dash-less form) it works, too. Although I don't know if this somehow would interfere with --inetd mode.
-- Hannes