Re: [PATCH v4 3/3] bundle-uri: do not die on unresolvable relative URIs
- From
- Aniket Gupta <aniketgupta3001@gmail.com>
- Date
- Nov 23, 2026, 22:25 UTC
- Message-ID
- <20261123222541.60600-1-aniketgupta3001@gmail.com>
- In-Reply-To
- <xmqq1p8b5kfw.fsf@gitster.g>
> This is minor, but because bundle_list_update() places the bundle in > the '.bundles' hashmap of 'list' before we come here, a failing entry > will stay in the hashmap with '.uri' of 'bundle' set to NULL.
You are right. I am able to repro it with a server that advertises a bad entry: after the three errors we already print there is a fourth one, "error: bundle '<id>' has no uri". A list given to --bundle-uri does not show it, as that whole list is rejected before we get there.
> which may or may not be what we want. After all, we have already > issued an error message, so...?
I dont think we need it since the earlier errors already say what is wrong. I tried dropping the bundle from the list when its URI cannot be resolved. The clone behaves the same, just without the extra error, and the bundle-uri tests still pass. I did not want to hide it in fetch_bundle_uri_internal(), as a bundle that is advertised without any uri should still be reported, like we do today. Will do the drop in v5 and add a test for it.