From cd7c3224480b0a8e9c93f22c10caea8fb987be07 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 22 Sep 2023 17:19:33 +0200 Subject: content git map: Move handling of --fetch-absent flag from checkout to the map itself --- src/other_tools/repo_map/repos_to_setup_map.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/other_tools/repo_map') diff --git a/src/other_tools/repo_map/repos_to_setup_map.cpp b/src/other_tools/repo_map/repos_to_setup_map.cpp index 7de7e2ff..a72903d1 100644 --- a/src/other_tools/repo_map/repos_to_setup_map.cpp +++ b/src/other_tools/repo_map/repos_to_setup_map.cpp @@ -151,7 +151,6 @@ void ArchiveCheckout(ExpressionPtr const& repo_desc, std::string const& repo_name, std::string const& repo_type, gsl::not_null const& content_git_map, - bool fetch_absent, gsl::not_null const& ts, ReposToSetupMap::SetterPtr const& setter, ReposToSetupMap::LoggerPtr const& logger) { @@ -226,7 +225,7 @@ void ArchiveCheckout(ExpressionPtr const& repo_desc, .repo_type = repo_type, .subdir = subdir.empty() ? "." : subdir.string(), .pragma_special = pragma_special_value, - .absent = not fetch_absent and pragma_absent_value}; + .absent = pragma_absent_value}; // get the WS root as git tree content_git_map->ConsumeAfterKeysReady( ts, @@ -774,7 +773,6 @@ auto CreateReposToSetupMap(std::shared_ptr const& config, key, repo_type_str, content_git_map, - fetch_absent, ts, setter, wrapped_logger); -- cgit v1.2.3