Re: git-daemon breakage in 1.5.4

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: git-daemon breakage in 1.5.4

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:10

Wincent Colaiuta [off-list ref] writes:
This fails with the "remote end hung up unexpectedly" error:

   # /usr/local/bin/git-daemon --inetd --base-path=/blah -- /blah

Drop the --inetd option and it works with no errors:
Do you mean you run the above from your command line and it
fails?

I do not think --inetd mode is supposed to work as a daemon that
accepts connections.  Wouldn't it be talking with a single peer
via its stdin/stdout?

Puzzled.

Re: git-daemon breakage in 1.5.4

From: Wincent Colaiuta <hidden>
Date: 2016-06-15 22:44:10

El 6/2/2008, a las 9:46, Junio C Hamano escribió:
Wincent Colaiuta [off-list ref] writes:
quoted
This fails with the "remote end hung up unexpectedly" error:

  # /usr/local/bin/git-daemon --inetd --base-path=/blah -- /blah

Drop the --inetd option and it works with no errors:
Do you mean you run the above from your command line and it
fails?
Yes.
I do not think --inetd mode is supposed to work as a daemon that
accepts connections.  Wouldn't it be talking with a single peer
via its stdin/stdout?
I don't know exactly what it does under the covers (will look now).  
Perhaps it detects that its running from an interactive login and  
modifies its behaviour. But all I can confirm is that in 1.5.3.8 (and  
before 511707d42b3b3e57d9623493092590546ffeae80) "git daemon" works  
from the command line both with and without the --inetd option, and in  
1.5.4 (from that commit onwards) "git daemon" doesn't work for me with  
the --inetd option but it does without it. The testing from the  
command line is really only a diagnostic thing (perhaps misguided),  
but it does exhibit the same behaviour as issuing the same command  
within xinetd.

Cheers,
Wincent
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help