From 19f7756b96f4eb1e75900e45e4488aaa8dfb81d9 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 17 Nov 2023 10:54:57 +0100 Subject: archive repository: Query 'just serve' endpoint also when not marked absent ...before going to the network, if 'just serve' endpoint given. ContentCASMap was reworked to provide a cleaner logic for handling pure fetches, which also reduced code duplication in ContentGitMap. --- src/other_tools/just_mr/fetch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/other_tools/just_mr/fetch.cpp') diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp index 16dcda22..ade217f2 100644 --- a/src/other_tools/just_mr/fetch.cpp +++ b/src/other_tools/just_mr/fetch.cpp @@ -242,7 +242,7 @@ auto MultiRepoFetch(std::shared_ptr const& config, repo_desc_sha512->String()) : std::nullopt, .origin = repo_name, - .origin_from_distdir = false}, + .fetch_only = true}, .repo_type = repo_type_str, .subdir = subdir.empty() ? "." : subdir.string(), .pragma_special = std::nullopt, // not used -- cgit v1.2.3