summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-02-24 12:35:39 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-02-24 13:36:37 +0100
commita42766ceb405ea47fdd55a9003557295f7a8efa8 (patch)
tree683bbdd5bc45cb705721f3be95676e26a42ac1f1 /src
parent504ef18eaf800922b7670cca588d0f2a4659b504 (diff)
downloadjustbuild-a42766ceb405ea47fdd55a9003557295f7a8efa8.tar.gz
git_tree_fetch_map: Improve warning message
Diffstat (limited to 'src')
-rw-r--r--src/other_tools/ops_maps/git_tree_fetch_map.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/other_tools/ops_maps/git_tree_fetch_map.cpp b/src/other_tools/ops_maps/git_tree_fetch_map.cpp
index d5de57d9..f6d526e4 100644
--- a/src/other_tools/ops_maps/git_tree_fetch_map.cpp
+++ b/src/other_tools/ops_maps/git_tree_fetch_map.cpp
@@ -54,23 +54,17 @@ void BackupToRemote(ArtifactDigest const& digest,
&native_storage_config,
compat_storage_config,
compat_storage_config != nullptr ? &*local_api : nullptr};
- if (not git_api.RetrieveToCas(
+ if (git_api.RetrieveToCas(
{Artifact::ObjectInfo{.digest = digest,
.type = ObjectType::Tree}},
remote_api)) {
- // give a warning
- (*logger)(fmt::format(
- "Failed to back up tree {} from local CAS to remote",
- digest.hash()),
- /*fatal=*/false);
+ return;
}
}
- else {
- // give a warning
- (*logger)(fmt::format("Failed to SetGitCAS at {}",
- native_storage_config.GitRoot().string()),
- /*fatal=*/false);
- }
+ // give a warning
+ (*logger)(fmt::format("Failed to back up tree {} from local CAS to remote",
+ digest.hash()),
+ /*fatal=*/false);
}
/// \brief Moves the root tree from local CAS to the Git cache and sets the