git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/4] t5551-http-fetch-smart.sh: use the GIT_TRACE_CURL environment var

From
Elia Pinto <gitter.spiros@gmail.com>
Date
Sep 5, 2016, 10:24 UTC
Message-ID
<20160905102444.3586-5-gitter.spiros@gmail.com>
In-Reply-To
<20160905102444.3586-1-gitter.spiros@gmail.com>

Use the new GIT_TRACE_CURL environment variable instead of the deprecated GIT_CURL_VERBOSE.

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
---
 t/t5551-http-fetch-smart.sh | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/t/t5551-http-fetch-smart.sh b/t/t5551-http-fetch-smart.sh
index 2f375eb..1ec5b27 100755
--- 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' '
-	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
+		/^== 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
 
@@ -261,9 +270,9 @@ test_expect_success CMDLINE_LIMIT \
 '
 
 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 &&
-	grep "^> POST" err >posts &&
+	grep "^=> Send header: POST" err >posts &&
 	test_line_count = 2 posts
 '
 
-- 
2.10.0.308.gf73994d
Previous: Junio C Hamano
Message 9 of 9 in “test suite: use the GIT_TRACE_CURL environment var”
  1. 0/4 test suite: use the GIT_TRACE_CURL environment varElia Pinto, Sep 5, 2016
  2. 1/4 t5541-http-push-smart.sh: use the GIT_TRACE_CURL environment varElia Pinto, Sep 5, 2016
  3. 2/4 test-lib.sh: preserve GIT_TRACE_CURL from the environmentElia Pinto, Sep 5, 2016
  4. 3/4 t5550-http-fetch-dumb.sh: use the GIT_TRACE_CURL environment varElia Pinto, Sep 5, 2016
  5. Eric SunshineSep 5, 2016
  6. Elia PintoSep 5, 2016
  7. Junio C HamanoSep 7, 2016
  8. Junio C HamanoSep 7, 2016
  9. 4/4 t5551-http-fetch-smart.sh: use the GIT_TRACE_CURL environment varElia Pinto, Sep 5, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.