diff options
Diffstat (limited to 'src/buildtool/file_system/file_root.hpp')
-rw-r--r-- | src/buildtool/file_system/file_root.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildtool/file_system/file_root.hpp b/src/buildtool/file_system/file_root.hpp index 50065bfd..6a34409c 100644 --- a/src/buildtool/file_system/file_root.hpp +++ b/src/buildtool/file_system/file_root.hpp @@ -222,9 +222,10 @@ class FileRoot { /// \brief Retrieve a root tree as a KNOWN artifact. /// Only succeeds if no entries have to be ignored. - [[nodiscard]] auto AsKnownTree(std::string const& repository) + [[nodiscard]] auto AsKnownTree(HashFunction::Type hash_type, + std::string const& repository) const noexcept -> std::optional<ArtifactDescription> { - if (ProtocolTraits::Instance().IsCompatible()) { + if (not ProtocolTraits::IsNative(hash_type)) { return std::nullopt; } if (std::holds_alternative<tree_t>(data_)) { |