From: Aniket Gupta <aniketgupta3001@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
Derrick Stolee <stolee@gmail.com>, Patrick Steinhardt <ps@pks.im>
Subject: [PATCH v4 0/3] bundle-uri: do not die on unresolvable relative URIs
Date: Mon, 23 Nov 2026 12:14:19 +0530 [thread overview]
Message-ID: <cover.1795415793.git.aniketgupta3001@gmail.com> (raw)
In-Reply-To: <20261105152842.566318-1-aniketgupta3001@gmail.com>
A bundle list can contain a relative URI that cannot be resolved and
one such entry can result in the entire clone dying. This series lets
the bundle code report it and the clone carry on.
Changes since v3:
* Patch 2: dropped the part that hides credentials as Stolee was not
convinced it is needed. The part that names the URL that was passed
in stays, as Patrick wanted. The patch has a new title and its test
no longer uses a password.
* Patch 3: fixed the commit message. Previously it said that the
clone carries on with the other bundles. That is true only for a
list that a server advertises only for the bundles before the bad
entry. A list given to --bundle-uri is rejected as a whole. In both
cases, the clone fetches the rest from the remote. No code change.
* Rebased onto current master, no conflicts.
Stolee's idea of having a toggle to bring back the die() is not part
of this series. Happy to take that as a follow-up :)
This conflicts a bit with tb/config-null-values in next, which adds a
"!value" check in bundle_list_update() right above the line that patch
3 changes. Keeping both is enough, "!value" check first. I tested that
merge (t0060, t5558, t5750).
Aniket Gupta (3):
remote: add relative_url_gently()
remote: name the original URL when relative_url() fails
bundle-uri: do not die on unresolvable relative URIs
bundle-uri.c | 10 +++++++++-
remote.c | 34 ++++++++++++++++++++++++++++------
remote.h | 8 ++++++++
t/t0060-path-utils.sh | 9 +++++++++
t/t5750-bundle-uri-parse.sh | 15 +++++++--------
5 files changed, 61 insertions(+), 15 deletions(-)
base-commit: f7de81456940dd6f3274e461149bba12965de609
--
2.54.0 (Apple Git-157)
next prev parent reply other threads:[~2026-11-23 6:44 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 ` Aniket Gupta [this message]
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
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=cover.1795415793.git.aniketgupta3001@gmail.com \
--to=aniketgupta3001@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ps@pks.im \
--cc=stolee@gmail.com \
/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