Re: [PATCH] remote-curl: die on server-side errors
- From
Josh Steadmon <steadmon@google.com>
- Date
- Nov 13, 2018, 22:28 UTC
- Message-ID
- <20181113222841.GF126896@google.com>
- In-Reply-To
- <xmqq4lcluk1u.fsf@gitster-ct.c.googlers.com>
On 2018.11.13 23:30, Junio C Hamano wrote:
Show 15 quoted lines
> steadmon@google.com writes: > > > When a smart HTTP server sends an error message via pkt-line, > > remote-curl will fail to detect the error (which usually results in > > incorrectly falling back to dumb-HTTP mode). > > OK, that is a valid thing to worry about. > > > > > This patch adds a check in discover_refs() for server-side error > > messages, as well as a test case for this issue. > > This makes me wonder if discoer_refs() is the only place where we > ought to be checking for ERR packets but we are not. Are there > other places that we also need a similar fix?
Quite possibly; I'll review the other client code to see if there are similar issues before sending v2.