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

[PATCH v1 3/3] t5702: `fetch.uriprotocols` is configured without value

From
Teng Long <dyroneteng@gmail.com>
Date
Aug 13, 2021, 09:14 UTC
Message-ID
<3ee54255440fcc5cf549ab5e98fa51bbcd5df2e1.1628845748.git.dyroneteng@gmail.com>
In-Reply-To
<cover.1628845748.git.dyroneteng@gmail.com>
Signed-off-by: Teng Long <dyroneteng@gmail.com>
---
 t/t5702-protocol-v2.sh | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff --git a/t/t5702-protocol-v2.sh b/t/t5702-protocol-v2.sh
index 66af411057..cf3bc89775 100755
--- a/t/t5702-protocol-v2.sh
+++ b/t/t5702-protocol-v2.sh
@@ -945,6 +945,29 @@ test_expect_success 'packfile URIs with fetch instead of clone' '
 		fetch "$HTTPD_URL/smart/http_parent"
 '
 
+test_expect_success 'packfile URIs with fetch by default `fetch.uriprotocols` config' '
+	P="$HTTPD_DOCUMENT_ROOT_PATH/http_parent" &&
+	rm -rf "$P" http_child log &&
+
+	git init "$P" &&
+	git -C "$P" config "uploadpack.allowsidebandall" "true" &&
+
+	echo my-blob >"$P/my-blob" &&
+	git -C "$P" add my-blob &&
+	git -C "$P" commit -m x &&
+
+	configure_exclusion "$P" my-blob >h &&
+
+	git init http_child &&
+
+	GIT_TEST_SIDEBAND_ALL=1 GIT_TRACE_PACKET=`pwd`/log \
+	git -C http_child \
+		-c protocol.version=2 \
+		-c fetch.uriprotocols \
+		fetch "$HTTPD_URL/smart/http_parent" &&
+	grep "git< packfile-uris http,https" log
+'
+
 test_expect_success 'fetching with valid packfile URI but invalid hash fails' '
 	P="$HTTPD_DOCUMENT_ROOT_PATH/http_parent" &&
 	rm -rf "$P" http_child log &&
-- 
2.32.0.1.g0de8fe24d1.dirty
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 6 of 7 in “packfile-uri: http and https as default value of `--uri-protocol`”
  1. 0/3 packfile-uri: http and https as default value of `--uri-protocol`Teng Long, Aug 13, 2021
  2. 1/3 packfile-uri: http and https as default value of `--uri-protocol`Teng Long, Aug 13, 2021
  3. Ævar Arnfjörð BjarmasonAug 21, 2021
  4. 2/3 git-pack-objects.txt: introduce `--uri-protocol` optionTeng Long, Aug 13, 2021
  5. Ævar Arnfjörð BjarmasonAug 21, 2021
  6. 3/3 t5702: `fetch.uriprotocols` is configured without valueTeng Long, Aug 13, 2021
  7. Ævar Arnfjörð BjarmasonAug 21, 2021

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.