Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t5550-http-fetch-dumb.sh: use the GIT_TRACE_CURL environment var
author
Elia Pinto
<gitter.spiros@gmail.com>
Mon, 5 Sep 2016 19:19:40 +0000
(19:19 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Sep 2016 18:41:42 +0000
(11:41 -0700)
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>
t/t5550-http-fetch-dumb.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
4527aa1
)
diff --git
a/t/t5550-http-fetch-dumb.sh
b/t/t5550-http-fetch-dumb.sh
index 3484b6f0f3cf04a9cf831a5d91c31486efebcc38..dc9b87d6b41efc472eac1a2b768bf56c01caf4d1 100755
(executable)
--- a/
t/t5550-http-fetch-dumb.sh
+++ b/
t/t5550-http-fetch-dumb.sh
@@
-263,15
+263,15
@@
check_language () {
>expect
;;
?*)
>expect
;;
?*)
- echo "Accept-Language: $1" >expect
+ echo "
=> Send header:
Accept-Language: $1" >expect
;;
esac &&
;;
esac &&
- GIT_
CURL_VERBOSE=1
\
+ GIT_
TRACE_CURL=true
\
LANGUAGE=$2 \
git ls-remote "$HTTPD_URL/dumb/repo.git" >output 2>&1 &&
tr -d '\015' <output |
sort -u |
LANGUAGE=$2 \
git ls-remote "$HTTPD_URL/dumb/repo.git" >output 2>&1 &&
tr -d '\015' <output |
sort -u |
- sed -ne '/^Accept-Language:/ p' >actual &&
+ sed -ne '/^
=> Send header:
Accept-Language:/ p' >actual &&
test_cmp expect actual
}
test_cmp expect actual
}
@@
-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" \
'
test_expect_success 'git client does not send an empty Accept-Language' '
'
test_expect_success 'git client does not send an empty Accept-Language' '
- GIT_
CURL_VERBOSE=1
LANGUAGE= git ls-remote "$HTTPD_URL/dumb/repo.git" 2>stderr &&
- ! grep "^Accept-Language:" stderr
+ GIT_
TRACE_CURL=true
LANGUAGE= git ls-remote "$HTTPD_URL/dumb/repo.git" 2>stderr &&
+ ! grep "^
=> Send header:
Accept-Language:" stderr
'
stop_httpd
'
stop_httpd