diff options
Diffstat (limited to 'src/buildtool/execution_api/common/tree_reader.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/tree_reader.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/common/tree_reader.hpp b/src/buildtool/execution_api/common/tree_reader.hpp index 18e94fe8..de1e2edf 100644 --- a/src/buildtool/execution_api/common/tree_reader.hpp +++ b/src/buildtool/execution_api/common/tree_reader.hpp @@ -59,7 +59,7 @@ class TreeReader final { return true; }; - if (ProtocolTraits::Instance().IsCompatible()) { + if (not impl_.IsNativeProtocol()) { auto tree = impl_.ReadDirectory(digest); if (tree and not TreeReaderUtils::ReadObjectInfos(*tree, store_info)) { @@ -132,7 +132,7 @@ class TreeReader final { : store(parent / path, info); }; - if (ProtocolTraits::Instance().IsCompatible()) { + if (not impl_.IsNativeProtocol()) { if (auto tree = impl_.ReadDirectory(digest)) { if (include_trees and IsDirectoryEmpty(*tree)) { if (not store(parent, {digest, ObjectType::Tree})) { |