diff --git a/builtin/fetch.c b/builtin/fetch.c index 5857d860dbf64a7d3e32e7b5b6e4eaec6f07a6c3..04fa2ad9792dbc46476d03690ccd02d6b13914b4 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1680,6 +1680,18 @@ static int do_fetch(struct transport *transport, retcode = 1; } + transport_get_remote_bundle_uri(transport); + + if (transport->bundles && + hashmap_get_size(&transport->bundles->bundles)) { + if (fetch_bundle_list(the_repository, + transport->bundles)) + warning(_("failed to fetch advertised bundles")); + } else { + clear_bundle_list(transport->bundles); + FREE_AND_NULL(transport->bundles); + } + if (fetch_and_consume_refs(&display_state, transport, transaction, ref_map, &fetch_head, config)) { retcode = 1;