git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-daemon breakage in 1.5.4

From
APAdam Piatyszek <ediap@users.sourceforge.net>
Date
Feb 6, 2008, 12:02 UTC
Message-ID
<47A9A1B8.5090501@users.sourceforge.net>
In-Reply-To
<47A98092.2070509@viscovery.net>
* Johannes Sixt [6 II 2008 10:40]:
Show 11 quoted lines
> 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

You can also run "git daemon" passing --exec-path as a git argument. This should help. For instance, I use the following configuration in inetd.conf (SunOS 5.9):

   git   stream   tcp   nowait   gituser   /usr/local/bin/git \
     git --exec-path=/usr/local/bin daemon --inetd \
     --base-path=/export/home/gituser/git /export/home/gituser/git

BR, /Adam

-- 
.:.  Adam Piatyszek (ediap)  .:.....................................:.
.:.  ediap@users.sourceforge.net  .:................................:.
Previous: Johannes Sixt
Message 13 of 13 in “git-daemon breakage in 1.5.4”
  1. Wincent ColaiutaFeb 5, 2008
  2. Scott ParishFeb 5, 2008
  3. Wincent ColaiutaFeb 5, 2008
  4. Junio C HamanoFeb 5, 2008
  5. Wincent ColaiutaFeb 6, 2008
  6. Junio C HamanoFeb 6, 2008
  7. Wincent ColaiutaFeb 6, 2008
  8. Johannes SixtFeb 6, 2008
  9. Wincent ColaiutaFeb 6, 2008
  10. Johannes SixtFeb 6, 2008
  11. Wincent ColaiutaFeb 6, 2008
  12. Johannes SixtFeb 6, 2008
  13. Adam PiatyszekFeb 6, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.