git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob 89203d3a23c40a7121ae7aa72d47f33c310c8e94 861 bytes (raw)
name: t/t5730-protocol-v2-bundle-uri-file.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
#!/bin/sh

test_description="Test bundle-uri with protocol v2 and 'file://' transport"

TEST_NO_CREATE_REPO=1

GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

. ./test-lib.sh

# Test protocol v2 with 'file://' transport
#
T5730_PROTOCOL=file
. "$TEST_DIRECTORY"/lib-t5730-protocol-v2-bundle-uri.sh

test_expect_success "unknown capability value with $T5730_PROTOCOL:// using protocol v2" '
	test_when_finished "rm -f log" &&

	test_config -C "$T5730_PARENT" \
		uploadpack.bundleURI "$T5730_BUNDLE_URI_ESCAPED" &&

	GIT_TRACE_PACKET="$PWD/log" \
	GIT_TEST_BUNDLE_URI_UNKNOWN_CAPABILITY_VALUE=true \
	git \
		-c protocol.version=2 \
		ls-remote --symref "$T5730_URI" \
		>actual 2>err &&

	# Server responded using protocol v2
	grep "< version 2" log &&

	grep "> bundle-uri=test-unknown-capability-value" log
'

test_done

debug log:

solving 89203d3a23c ...
found 89203d3a23c in https://public-inbox.org/git/RFC-patch-v2-05.13-105ced66409-20220311T155841Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/RFC-patch-v2-11.36-b85c2a1c0df-20220418T165545Z-avarab@gmail.com/ ||
	https://public-inbox.org/git/64dd9bf41de0310bbed5e3623870819f1c876f83.1667264854.git.gitgitgadget@gmail.com/ ||
	https://public-inbox.org/git/0d85aef965d62a684b25f388a946abd3c17809fc.1668628303.git.gitgitgadget@gmail.com/ ||
	https://public-inbox.org/git/1830d193b116b00dd1b484852385062ac92a451c.1653072042.git.gitgitgadget@gmail.com/

applying [1/1] https://public-inbox.org/git/RFC-patch-v2-05.13-105ced66409-20220311T155841Z-avarab@gmail.com/
diff --git a/t/t5730-protocol-v2-bundle-uri-file.sh b/t/t5730-protocol-v2-bundle-uri-file.sh
new file mode 100755
index 00000000000..89203d3a23c

Checking patch t/t5730-protocol-v2-bundle-uri-file.sh...
Applied patch t/t5730-protocol-v2-bundle-uri-file.sh cleanly.

skipping https://public-inbox.org/git/RFC-patch-v2-11.36-b85c2a1c0df-20220418T165545Z-avarab@gmail.com/ for 89203d3a23c
skipping https://public-inbox.org/git/64dd9bf41de0310bbed5e3623870819f1c876f83.1667264854.git.gitgitgadget@gmail.com/ for 89203d3a23c
skipping https://public-inbox.org/git/0d85aef965d62a684b25f388a946abd3c17809fc.1668628303.git.gitgitgadget@gmail.com/ for 89203d3a23c
skipping https://public-inbox.org/git/1830d193b116b00dd1b484852385062ac92a451c.1653072042.git.gitgitgadget@gmail.com/ for 89203d3a23c
index at:
100755 89203d3a23c40a7121ae7aa72d47f33c310c8e94	t/t5730-protocol-v2-bundle-uri-file.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).