t5551-http-fetch-smart.sh: use the GIT_TRACE_CURL environment var
Use the new GIT_TRACE_CURL environment variable instead of the deprecated GIT_CURL_VERBOSE. Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elia Pinto committed
Sep 5, 2016 at 10:24 UTC
14e24114d9cfe2f878ee540e4df485c2cae8253a
1 file changed
+12
-3
t/t5551-http-fetch-smart.sh
+12
-3
@@ -43,12 +43,21 @@ cat >exp <<EOF
43
< Content-Type: application/x-git-upload-pack-result
44
EOF
45
test_expect_success 'clone http repository' '
46
- GIT_CURL_VERBOSE=1 git clone --quiet $HTTPD_URL/smart/repo.git clone 2>err &&
46
+ GIT_TRACE_CURL=true git clone --quiet $HTTPD_URL/smart/repo.git clone 2>err &&
47
test_cmp file clone/file &&
48
tr '\''\015'\'' Q <err |
49
sed -e "
50
s/Q\$//
51
/^[*] /d
52
+ /^== Info:/d
53
+ /^=> Send header, /d
54
+ /^=> Send header:$/d
55
+ /^<= Recv header, /d
56
+ /^<= Recv header:$/d
57
+ s/=> Send header: //
58
+ s/= Recv header://
59
+ /^<= Recv data/d
60
+ /^=> Send data/d
61
/^$/d
62
/^< $/d
63
@@ -261,9 +270,9 @@ test_expect_success CMDLINE_LIMIT \
270
'
271
272
test_expect_success 'large fetch-pack requests can be split across POSTs' '
264
- GIT_CURL_VERBOSE=1 git -c http.postbuffer=65536 \
273
+ GIT_TRACE_CURL=true git -c http.postbuffer=65536 \
274
clone --bare "$HTTPD_URL/smart/repo.git" split.git 2>err &&
266
- grep "^> POST" err >posts &&
275
+ grep "^=> Send header: POST" err >posts &&
276
test_line_count = 2 posts
277
'
278