summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/commit_git_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/root_maps/commit_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/commit_git_map.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp
index e00c97cb..9acc5e1b 100644
--- a/src/other_tools/root_maps/commit_git_map.cpp
+++ b/src/other_tools/root_maps/commit_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/cpp/expected.hpp"
#include "src/utils/cpp/path.hpp"
#include "src/utils/cpp/tmp_dir.hpp"
@@ -79,8 +78,12 @@ void EnsureRootAsAbsent(std::string const& tree_id,
// 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) {