summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/distdir_git_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/root_maps/distdir_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/distdir_git_map.cpp26
1 files changed, 4 insertions, 22 deletions
diff --git a/src/other_tools/root_maps/distdir_git_map.cpp b/src/other_tools/root_maps/distdir_git_map.cpp
index 422a89cd..49329908 100644
--- a/src/other_tools/root_maps/distdir_git_map.cpp
+++ b/src/other_tools/root_maps/distdir_git_map.cpp
@@ -417,17 +417,8 @@ auto CreateDistdirGitMap(
// remote CAS
if (digest and remote_api->IsAvailable({*digest})) {
// tell serve to set up the root from the remote CAS
- // tree; upload can be skipped
- if (EnsureAbsentRootOnServe(
- *serve,
- tree_id,
- /*repo_path=*/"",
- native_storage_config,
- /*compat_storage_config=*/nullptr,
- /*local_api=*/nullptr,
- /*remote_api=*/nullptr,
- logger,
- /*no_sync_is_fatal=*/true)) {
+ // tree
+ if (serve->GetTreeFromRemote(*digest)) {
// set workspace root as absent
(*setter)(std::pair(
nlohmann::json::array(
@@ -457,17 +448,8 @@ auto CreateDistdirGitMap(
return;
}
// tell serve to set up the root from the remote CAS
- // tree; upload can be skipped
- if (EnsureAbsentRootOnServe(
- *serve,
- tree_id,
- /*repo_path=*/"",
- native_storage_config,
- /*compat_storage_config=*/nullptr,
- /*local_api=*/nullptr,
- /*remote_api=*/nullptr,
- logger,
- /*no_sync_is_fatal=*/true)) {
+ // tree
+ if (serve->GetTreeFromRemote(*digest)) {
// set workspace root as absent
(*setter)(std::pair(
nlohmann::json::array(