Re: [PATCH] lessen the impression of unexpectedness on remote hangup
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jun 10, 2012, 18:44 UTC
- Message-ID
- <20120610184410.GA1115@burratino>
- In-Reply-To
- <20120610182310.GB2427@book.hvoigt.net>
Hi,
Heiko Voigt wrote:
Show 8 quoted lines
> --- a/pkt-line.c
> +++ b/pkt-line.c
> @@ -141,7 +141,7 @@ static void safe_read(int fd, void *buffer, unsigned size)
> if (ret < 0)
> die_errno("read error");
> else if (ret < size)
> - die("The remote end hung up unexpectedly");
> + die("The remote end hung up");Looks good. Incidentally, maybe this would be a good excuse to revisit [1].
If I remember correctly, the conclusion of that discussion was that --informative-errors is a good default for the git daemon as long as
- there is some warning when using it without --base-path - there is an easy way to turn it off - we communicate the change clearly and in advance
Hope that helps, Jonathan
[1] http://thread.gmane.org/gmane.comp.version-control.git/183604