Jonathan Tan <jonathanta...@google.com> 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' '

Reply via email to