From f428c6c4fbd0c37c870cde1d58fd1a3d0abaf6cf Mon Sep 17 00:00:00 2001 From: John Cai Date: Mon, 20 May 2024 15:05:21 -0400 Subject: [PATCH] fetch: support downloading bundles when fetching --- builtin/fetch.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/builtin/fetch.c b/builtin/fetch.c index 5857d860dbf..04fa2ad9792 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; -- GitLab