]> git.ipfire.org Git - thirdparty/git.git/commit
bundle-uri client: add helper for testing server
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 22 Dec 2022 15:14:12 +0000 (15:14 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Dec 2022 07:24:24 +0000 (16:24 +0900)
commit70b9c1037325ee82bc0832f4ca2d30c6ebf4808e
tree1fc014920c20086ed0556830fab2d123e3507e38
parent1b759e0cf1c18c637e40c6c191a0b614e4e4ea43
bundle-uri client: add helper for testing server

Add a 'test-tool bundle-uri ls-remote' command. This is a thin wrapper
for issuing protocol v2 "bundle-uri" commands to a server, and to the
parsing routines in bundle-uri.c.

In the "git clone" case we'll have already done the handshake(),
but not here. Add an extra case to check for this handshake in
get_bundle_uri() for ease of use for future callers.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-bundle-uri.c
t/lib-bundle-uri-protocol.sh
transport.c