Junio C Hamano <junkio@xxxxxxx> writes: > This implements a protocol extension between fetch-pack and > upload-pack to allow stderr stream from upload-pack (primarily > used for the progress bar display) to be passed back. > > Signed-off-by: Junio C Hamano <junkio@xxxxxxx> > --- > > * With this, fetching and cloning over git+ssh:// and git:// > does not discard the progress bar and error messages that > upload-pack emits on its standard output. They are sent to > the downloader and shown to the user. > > Somehow this does not work when connecting to git daemon that > runs under inetd. Fixes appreciated. This seems to fix it. -- >8 -- Subject: [PATCH] daemon: send stderr to /dev/null instead of closing. Signed-off-by: Junio C Hamano <junkio@xxxxxxx> --- daemon.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/daemon.c b/daemon.c index bdfe80d..0747ce2 100644 --- a/daemon.c +++ b/daemon.c @@ -757,7 +757,7 @@ int main(int argc, char **argv) struct sockaddr *peer = (struct sockaddr *)&ss; socklen_t slen = sizeof(ss); - fclose(stderr); //FIXME: workaround + freopen("/dev/null", "w", stderr); if (getpeername(0, peer, &slen)) peer = NULL; -- 1.4.0.g7883 - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html