summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_tree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/file_system/git_tree.cpp')
-rw-r--r--src/buildtool/file_system/git_tree.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildtool/file_system/git_tree.cpp b/src/buildtool/file_system/git_tree.cpp
index e0b25593..ad7a1c5b 100644
--- a/src/buildtool/file_system/git_tree.cpp
+++ b/src/buildtool/file_system/git_tree.cpp
@@ -63,11 +63,10 @@ class SymlinksChecker final {
: cas_{*cas} {}
[[nodiscard]] auto operator()(
- std::vector<bazel_re::Digest> const& ids) const noexcept -> bool {
+ std::vector<ArtifactDigest> const& ids) const noexcept -> bool {
return std::all_of(
- ids.begin(), ids.end(), [&cas = cas_](bazel_re::Digest const& id) {
- auto content = cas.ReadObject(ArtifactDigest(id).hash(),
- /*is_hex_id=*/true);
+ ids.begin(), ids.end(), [&cas = cas_](ArtifactDigest const& id) {
+ auto content = cas.ReadObject(id.hash(), /*is_hex_id=*/true);
return content.has_value() and PathIsNonUpwards(*content);
});
};