From: Junio C Hamano Date: Thu, 14 Feb 2019 22:47:24 GMT Subject: Re: [PATCH 5/5] remote-curl: use post_rpc() for protocol v2 also Message-ID: In-Reply-To: <25ea75eb435ed8fed759b30a4c362a68818a8905.1550170980.git.jonathantanmy@google.com> Jonathan Tan writes: > + # Ensure that the list of wants is greater than http.postbuffer below > + for i in $(seq 1 1500) test_seq. > + do > + test_commit -C "$HTTPD_DOCUMENT_ROOT_PATH/big" "commit$i" > + done && > + > + GIT_TRACE_PACKET="$(pwd)/log" GIT_TRACE_CURL="$(pwd)/log" git \ > + -c protocol.version=2 -c http.postbuffer=65536 \ > + clone "$HTTPD_URL/smart/big" big_child && > + > + # Client requested to use protocol v2 > + grep "Git-Protocol: version=2" log && > + # Server responded using protocol v2 > + grep "git< version 2" log && > + # Verify that the chunked encoding sending codepath is exercised > + grep "Send header: Transfer-Encoding: chunked" log > ' > > test_expect_success 'fetch with http:// using protocol v2' '