diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-23 15:35:24 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-23 16:50:37 +0100 |
commit | c932331dccab9406404d0a4bbc177eb39fa77dc4 (patch) | |
tree | 757ffeb07a38fb7ba53fa9bf481351b2b5f36338 /src/other_tools/root_maps/content_git_map.cpp | |
parent | da7259a14d7267b5c8f17fd21640ff4d890bbb20 (diff) | |
download | justbuild-c932331dccab9406404d0a4bbc177eb39fa77dc4.tar.gz |
JustMr: Replace calls to CheckServeHasAbsentRoot with direct calls to serve
Diffstat (limited to 'src/other_tools/root_maps/content_git_map.cpp')
-rw-r--r-- | src/other_tools/root_maps/content_git_map.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp index 3e5dc3e0..2e112927 100644 --- a/src/other_tools/root_maps/content_git_map.cpp +++ b/src/other_tools/root_maps/content_git_map.cpp @@ -35,7 +35,6 @@ #include "src/buildtool/storage/fs_utils.hpp" #include "src/other_tools/git_operations/git_ops_types.hpp" #include "src/other_tools/git_operations/git_repo_remote.hpp" -#include "src/other_tools/root_maps/root_utils.hpp" #include "src/utils/archive/archive_ops.hpp" #include "src/utils/cpp/expected.hpp" #include "src/utils/cpp/tmp_dir.hpp" @@ -74,8 +73,12 @@ void EnsureRootAsAbsent( // this is an absent root if (serve != nullptr) { // check if the serve endpoint has this root - auto has_tree = CheckServeHasAbsentRoot(*serve, tree_id, logger); + auto const has_tree = serve->CheckRootTree(tree_id); if (not has_tree) { + (*logger)(fmt::format("Checking that the serve endpoint knows tree " + "{} failed.", + tree_id), + /*fatal=*/true); return; } if (not *has_tree) { |