Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t5551-http-fetch-smart.sh: use the GIT_TRACE_CURL environment var
author
Elia Pinto
<gitter.spiros@gmail.com>
Mon, 5 Sep 2016 10:24:44 +0000
(10:24 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Sep 2016 18:41:45 +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/t5551-http-fetch-smart.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
81590bf
)
diff --git
a/t/t5551-http-fetch-smart.sh
b/t/t5551-http-fetch-smart.sh
index 2f375eb94d528baefad038ff5b07baf0fe08d1fc..1ec5b2747a2100d3ae043cde5a2436eed2d52aec 100755
(executable)
--- a/
t/t5551-http-fetch-smart.sh
+++ b/
t/t5551-http-fetch-smart.sh
@@
-43,12
+43,21
@@
cat >exp <<EOF
< Content-Type: application/x-git-upload-pack-result
EOF
test_expect_success 'clone http repository' '
< Content-Type: application/x-git-upload-pack-result
EOF
test_expect_success 'clone http repository' '
- GIT_
CURL_VERBOSE=1
git clone --quiet $HTTPD_URL/smart/repo.git clone 2>err &&
+ GIT_
TRACE_CURL=true
git clone --quiet $HTTPD_URL/smart/repo.git clone 2>err &&
test_cmp file clone/file &&
tr '\''\015'\'' Q <err |
sed -e "
s/Q\$//
/^[*] /d
test_cmp file clone/file &&
tr '\''\015'\'' Q <err |
sed -e "
s/Q\$//
/^[*] /d
+ /^== Info:/d
+ /^=> Send header, /d
+ /^=> Send header:$/d
+ /^<= Recv header, /d
+ /^<= Recv header:$/d
+ s/=> Send header: //
+ s/= Recv header://
+ /^<= Recv data/d
+ /^=> Send data/d
/^$/d
/^< $/d
/^$/d
/^< $/d
@@
-261,9
+270,9
@@
test_expect_success CMDLINE_LIMIT \
'
test_expect_success 'large fetch-pack requests can be split across POSTs' '
'
test_expect_success 'large fetch-pack requests can be split across POSTs' '
- GIT_
CURL_VERBOSE=1
git -c http.postbuffer=65536 \
+ GIT_
TRACE_CURL=true
git -c http.postbuffer=65536 \
clone --bare "$HTTPD_URL/smart/repo.git" split.git 2>err &&
clone --bare "$HTTPD_URL/smart/repo.git" split.git 2>err &&
- grep "^
>
POST" err >posts &&
+ grep "^
=> Send header:
POST" err >posts &&
test_line_count = 2 posts
'
test_line_count = 2 posts
'