summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_engine/executor
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2022-09-12 16:48:42 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2022-09-12 17:03:13 +0200
commit64439ece68c521d698b9b13b9485eb7c63839d7a (patch)
tree28ec269f1a922cb226a761cbfe1704604b2c9d14 /src/buildtool/execution_engine/executor
parent21897a7e77feb19558807d4e9ead8ad1d8cfa403 (diff)
downloadjustbuild-64439ece68c521d698b9b13b9485eb7c63839d7a.tar.gz
Removed ArtifactDigest is_tree() predicate
Diffstat (limited to 'src/buildtool/execution_engine/executor')
-rw-r--r--src/buildtool/execution_engine/executor/executor.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp
index 546c5165..fb3593c8 100644
--- a/src/buildtool/execution_engine/executor/executor.hpp
+++ b/src/buildtool/execution_engine/executor/executor.hpp
@@ -260,7 +260,8 @@ class ExecutorImpl {
ArtifactDigest const& digest,
std::string const& hash) noexcept -> bool {
std::optional<std::string> content;
- if (digest.is_tree()) {
+ if (NativeSupport::IsTree(
+ static_cast<bazel_re::Digest>(digest).hash())) {
// if known tree is not available, recursively upload its content
auto tree = ReadGitTree(repo, hash);
if (not tree) {