Skip to content

Commit 14e2411

Browse files
devzero2000gitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 81590bf commit 14e2411

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

t/t5551-http-fetch-smart.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,21 @@ cat >exp <<EOF
4343
< Content-Type: application/x-git-upload-pack-result
4444
EOF
4545
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 &&
4747
test_cmp file clone/file &&
4848
tr '\''\015'\'' Q <err |
4949
sed -e "
5050
s/Q\$//
5151
/^[*] /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
5261
/^$/d
5362
/^< $/d
5463
@@ -261,9 +270,9 @@ test_expect_success CMDLINE_LIMIT \
261270
'
262271

263272
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 \
265274
clone --bare "$HTTPD_URL/smart/repo.git" split.git 2>err &&
266-
grep "^> POST" err >posts &&
275+
grep "^=> Send header: POST" err >posts &&
267276
test_line_count = 2 posts
268277
'
269278

0 commit comments

Comments
 (0)