git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] fetch-pack: be more precise in parsing v2 response

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 25, 2018, 09:04 UTC
Message-ID
<xmqqpnvygzy6.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<xmqqwoqav8g6.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 28 quoted lines
> Jonathan Tan <jonathantanmy@google.com> writes:
>
>> +	GIT_TRACE_PACKET="$(pwd)/log" test_must_fail git -C http_child \
>> +		-c protocol.version=2 \
>> +		fetch "$HTTPD_URL/one_time_sed/http_parent" 2> err &&
>
> Because test_must_fail is a shell function, the above is not a
> correct way to say "I want GIT_TRACE_PACKET exported only while this
> thing runs".
>
> I'll squash the following in.
>
>  t/t5702-protocol-v2.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/t/t5702-protocol-v2.sh b/t/t5702-protocol-v2.sh
> index 51009ca391..d58fbfa9e5 100755
> --- a/t/t5702-protocol-v2.sh
> +++ b/t/t5702-protocol-v2.sh
> @@ -555,7 +555,7 @@ test_expect_success 'when server does not send "ready", expect FLUSH' '
>  	printf "/acknowledgments/,$ s/0000/0001/" \
>  		>"$HTTPD_ROOT_PATH/one-time-sed" &&
>  
> -	GIT_TRACE_PACKET="$(pwd)/log" test_must_fail git -C http_child \
> +	test_must_fail env GIT_TRACE_PACKET="$(pwd)/log" git -C http_child \
>  		-c protocol.version=2 \
>  		fetch "$HTTPD_URL/one_time_sed/http_parent" 2> err &&
>  	grep "fetch< acknowledgments" log &&

I know it only has been a few days, but is there any other issue in the patch, anybody?

Otherwise, I am wondering if we can move this forwared after squashing the above fix in.

Thanks.
Previous: Junio C HamanoNext: Stefan Beller
Message 3 of 4 in “fetch-pack: be more precise in parsing v2 response”
  1. fetch-pack: be more precise in parsing v2 responseJonathan Tan, Oct 19, 2018
  2. Junio C HamanoOct 22, 2018
  3. Junio C HamanoOct 25, 2018
  4. Stefan BellerOct 25, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.