Today a bundle list with one relative URI that cannot be resolved makes the whole clone die. Aniket Gupta's three-patch series adds relative_url_gently(), stops relative_url() from showing credentials when it fails, and makes the bundle-uri code report the error and skip the bundle.
Changes in v3 split the work into three patches. The commit message now describes relative_url() as a thin wrapper around relative_url_gently(). The credentials test compares the full error message. The error names the URL that was passed in, not what remained after components were stripped.
Junio Hamano said this version tells the story much better than earlier rounds. He noted a minor problem: bundle_list_update() puts the bundle in the list's hashmap before the failure, so the failing entry stays with a NULL uri. If valid bundles precede it, fetch_bundle_uri_internal() may print "bundle '<id>' has no uri" before the clone continues with the remote fetch.
Gupta reproduced this with a server advertising a bad entry. A fourth error appears after the three already printed. A list given to --bundle-uri is rejected earlier and does not show it. Gupta thinks the extra error is not needed and tried dropping the bundle from the list when its URI cannot be resolved. The clone behaves the same without the message, and the bundle-uri tests pass. Gupta did not want to hide it in fetch_bundle_uri_internal(), since a bundle advertised without any uri should still be reported.
Derrick Stolee said the version looks good to him and agreed another addition is not needed. Patrick Steinhardt also took part in the thread.