From: Nicolas Pitre Date: Sat, 01 Nov 2008 02:20:35 GMT Subject: Re: [PATCH] connect.c: add a way for git-daemon to pass an error back to client Message-ID: In-Reply-To: On Sat, 1 Nov 2008, Johannes Schindelin wrote: > Hi, > > On Fri, 31 Oct 2008, Tom Preston-Werner wrote: > > > The current behavior of git-daemon is to simply close the connection on > > any error condition. This leaves the client without any information as > > to the cause of the failed fetch/push/etc. > > > > This patch allows get_remote_heads to accept a line prefixed with "ERR" > > that it can display to the user in an informative fashion. Once clients > > can understand this ERR line, git-daemon can be made to properly report > > "repository not found", "permission denied", or other errors. > > > > Example > > > > S: ERR No matching repository. > > C: fatal: remote error: No matching repository. > > Makes sense to me. Note that this behavior of not returning any reason for failure was argued to be a security feature in the past, by Linus I think. Nicolas