From: Aniket Gupta Date: Thu, 26 Nov 2026 11:58:00 GMT Subject: [PATCH v5 0/3] bundle-uri: do not die on unresolvable relative URIs Message-ID: <20261126115803.30015-1-aniketgupta3001@gmail.com> 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 in v5: * Patch 3: drop the bundle from the list when its URI cannot be resolved. A list that a server advertises no longer reports that bundle a second time as having no uri (Junio). Added a clone test for it. Changes in v4: * 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 the bundles before the bad entry, in a list that a server advertises. 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. 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 | 13 ++++++++++++- remote.c | 34 ++++++++++++++++++++++++++++------ remote.h | 8 ++++++++ t/t0060-path-utils.sh | 9 +++++++++ t/t5558-clone-bundle-uri.sh | 16 ++++++++++++++++ t/t5750-bundle-uri-parse.sh | 15 +++++++-------- 6 files changed, 80 insertions(+), 15 deletions(-) -- 2.54.0 (Apple Git-157)