From: Derrick Stolee <stolee@gmail.com>
To: Aniket Gupta <aniketgupta3001@gmail.com>, git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>, Patrick Steinhardt <ps@pks.im>
Subject: Re: [PATCH v5 3/3] bundle-uri: do not die on unresolvable relative URIs
Date: Mon, 30 Nov 2026 14:11:03 -0500 [thread overview]
Message-ID: <9fe3cdee-03a6-411f-9bdc-6885bc0ef7eb@gmail.com> (raw)
In-Reply-To: <20261126115803.30015-4-aniketgupta3001@gmail.com>
On 11/26/2026 6:58 AM, Aniket Gupta wrote:
> diff --git a/t/t5558-clone-bundle-uri.sh b/t/t5558-clone-bundle-uri.sh
> index e86ed7d30c..e7a3e17775 100755
> --- a/t/t5558-clone-bundle-uri.sh
> +++ b/t/t5558-clone-bundle-uri.sh
> @@ -1351,6 +1351,22 @@ test_expect_success 'bundles advertised with empty URI' '
> test_grep ! "expected packfile" err
> '
>
> +test_expect_success 'bundles advertised with unresolvable relative URI' '
> + git clone --no-local --mirror clone-from \
> + "$HTTPD_DOCUMENT_ROOT_PATH/bad-relative-uri.git" &&
> + git -C "$HTTPD_DOCUMENT_ROOT_PATH/bad-relative-uri.git" config uploadpack.advertiseBundleURIs true &&
> + git -C "$HTTPD_DOCUMENT_ROOT_PATH/bad-relative-uri.git" config bundle.version 1 &&
> + git -C "$HTTPD_DOCUMENT_ROOT_PATH/bad-relative-uri.git" config bundle.mode all &&
> + git -C "$HTTPD_DOCUMENT_ROOT_PATH/bad-relative-uri.git" config bundle.bundle-1.uri ../../../../../../../../bundle.bdl &&
> + git -C "$HTTPD_DOCUMENT_ROOT_PATH/bad-relative-uri.git" config bundle.bundle-1.creationToken 1 &&
> +
> + git -c transfer.bundleURI=true clone \
> + "$HTTPD_URL/smart/bad-relative-uri.git" target-bad-relative-uri 2>err &&
> + test_grep "cannot strip one component off url" err &&
> + test_grep ! "has no uri" err &&
> + git -C target-bad-relative-uri fsck
> +'
> +
This is the new test in v5. LGTM.
Thanks,
-Stolee
prev parent reply other threads:[~2026-11-30 19:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 15:28 [PATCH v3 0/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-05 15:28 ` [PATCH v3 1/3] remote: add relative_url_gently() Aniket Gupta
2026-11-06 14:36 ` Derrick Stolee
2026-11-05 15:28 ` [PATCH v3 2/3] remote: do not show credentials when relative_url() fails Aniket Gupta
2026-11-06 14:43 ` Derrick Stolee
2026-11-06 19:15 ` Junio C Hamano
2026-11-09 10:39 ` Aniket Gupta
2026-11-05 15:28 ` [PATCH v3 3/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-06 14:51 ` Derrick Stolee
2026-11-06 14:57 ` [PATCH v3 0/3] " Derrick Stolee
2026-11-06 17:25 ` Aniket Gupta
2026-11-09 9:26 ` Patrick Steinhardt
2026-11-09 10:56 ` Aniket Gupta
2026-11-23 6:44 ` [PATCH v4 " Aniket Gupta
2026-11-23 6:44 ` [PATCH v4 1/3] remote: add relative_url_gently() Aniket Gupta
2026-11-23 6:44 ` [PATCH v4 2/3] remote: name the original URL when relative_url() fails Aniket Gupta
2026-11-23 6:44 ` [PATCH v4 3/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-23 21:04 ` Junio C Hamano
2026-11-23 22:25 ` Aniket Gupta
2026-11-23 14:54 ` [PATCH v4 0/3] " Derrick Stolee
2026-11-26 11:58 ` [PATCH v5 " Aniket Gupta
2026-11-26 11:58 ` [PATCH v5 1/3] remote: add relative_url_gently() Aniket Gupta
2026-11-26 11:58 ` [PATCH v5 2/3] remote: name the original URL when relative_url() fails Aniket Gupta
2026-11-26 11:58 ` [PATCH v5 3/3] bundle-uri: do not die on unresolvable relative URIs Aniket Gupta
2026-11-30 19:11 ` Derrick Stolee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9fe3cdee-03a6-411f-9bdc-6885bc0ef7eb@gmail.com \
--to=stolee@gmail.com \
--cc=aniketgupta3001@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox