From 1f344bd93258fac03b6ea82c15dd5dad41ee20fa Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 29 Aug 2022 11:35:15 +0200 Subject: Git CAS: Move Git tree ops to fake repo wrapper class --- src/buildtool/execution_api/local/local_storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/local/local_storage.cpp') diff --git a/src/buildtool/execution_api/local/local_storage.cpp b/src/buildtool/execution_api/local/local_storage.cpp index a52e347d..eaeaa617 100644 --- a/src/buildtool/execution_api/local/local_storage.cpp +++ b/src/buildtool/execution_api/local/local_storage.cpp @@ -35,10 +35,10 @@ namespace { [[nodiscard]] auto ReadGitTree( gsl::not_null const& storage, bazel_re::Digest const& digest) noexcept - -> std::optional { + -> std::optional { if (auto const path = storage->TreePath(digest)) { if (auto const content = FileSystemManager::ReadFile(*path)) { - return GitCAS::ReadTreeData( + return GitRepo::ReadTreeData( *content, HashFunction::ComputeTreeHash(*content).Bytes(), /*is_hex_id=*/false); -- cgit v1.2.3