Thread (1 message) 1 message, 1 author, 2019-02-14

Re: [PATCH 5/5] remote-curl: use post_rpc() for protocol v2 also

From: Junio C Hamano <hidden>
Date: 2019-02-14 22:47:28

Jonathan Tan [off-list ref] 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' '
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help