Skip to content

Commit 81590bf

Browse files
devzero2000gitster
authored andcommitted
t5550-http-fetch-dumb.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>
1 parent 4527aa1 commit 81590bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/t5550-http-fetch-dumb.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,15 @@ check_language () {
263263
>expect
264264
;;
265265
?*)
266-
echo "Accept-Language: $1" >expect
266+
echo "=> Send header: Accept-Language: $1" >expect
267267
;;
268268
esac &&
269-
GIT_CURL_VERBOSE=1 \
269+
GIT_TRACE_CURL=true \
270270
LANGUAGE=$2 \
271271
git ls-remote "$HTTPD_URL/dumb/repo.git" >output 2>&1 &&
272272
tr -d '\015' <output |
273273
sort -u |
274-
sed -ne '/^Accept-Language:/ p' >actual &&
274+
sed -ne '/^=> Send header: Accept-Language:/ p' >actual &&
275275
test_cmp expect actual
276276
}
277277

@@ -295,8 +295,8 @@ ja;q=0.95, zh;q=0.94, sv;q=0.93, pt;q=0.92, nb;q=0.91, *;q=0.90" \
295295
'
296296

297297
test_expect_success 'git client does not send an empty Accept-Language' '
298-
GIT_CURL_VERBOSE=1 LANGUAGE= git ls-remote "$HTTPD_URL/dumb/repo.git" 2>stderr &&
299-
! grep "^Accept-Language:" stderr
298+
GIT_TRACE_CURL=true LANGUAGE= git ls-remote "$HTTPD_URL/dumb/repo.git" 2>stderr &&
299+
! grep "^=> Send header: Accept-Language:" stderr
300300
'
301301

302302
stop_httpd

0 commit comments

Comments
 (0)