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>
Elia Pinto committed
Sep 5, 2016 at 19:19 UTC
81590bf77db239c156c8ba5c3042d231b1a5995e
1 file changed
+5
-5
t/t5550-http-fetch-dumb.sh
+5
-5
@@ -263,15 +263,15 @@ check_language () {
263
>expect
264
;;
265
?*)
266
- echo "Accept-Language: $1" >expect
266
+ echo "=> Send header: Accept-Language: $1" >expect
267
;;
268
esac &&
269
- GIT_CURL_VERBOSE=1 \
269
+ GIT_TRACE_CURL=true \
270
LANGUAGE=$2 \
271
git ls-remote "$HTTPD_URL/dumb/repo.git" >output 2>&1 &&
272
tr -d '\015' <output |
273
sort -u |
274
- sed -ne '/^Accept-Language:/ p' >actual &&
274
+ sed -ne '/^=> Send header: Accept-Language:/ p' >actual &&
275
test_cmp expect actual
276
}
277
@@ -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" \
295
'
296
297
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
300
'
301
302
stop_httpd