summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/bazel_msg/blob_tree.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2022-08-29 11:35:15 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2022-12-21 14:41:57 +0100
commit1f344bd93258fac03b6ea82c15dd5dad41ee20fa (patch)
treea6696ca58ec9da63d4e1829bb2163c4e60811438 /src/buildtool/execution_api/bazel_msg/blob_tree.cpp
parentaf20b222322d943595cd580404eda7be7a0b5ba4 (diff)
downloadjustbuild-1f344bd93258fac03b6ea82c15dd5dad41ee20fa.tar.gz
Git CAS: Move Git tree ops to fake repo wrapper class
Diffstat (limited to 'src/buildtool/execution_api/bazel_msg/blob_tree.cpp')
-rw-r--r--src/buildtool/execution_api/bazel_msg/blob_tree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/bazel_msg/blob_tree.cpp b/src/buildtool/execution_api/bazel_msg/blob_tree.cpp
index 4b06fd7a..3e5e2fa6 100644
--- a/src/buildtool/execution_api/bazel_msg/blob_tree.cpp
+++ b/src/buildtool/execution_api/bazel_msg/blob_tree.cpp
@@ -20,7 +20,7 @@
#include "src/buildtool/common/artifact.hpp"
#include "src/buildtool/common/bazel_types.hpp"
#include "src/buildtool/compatibility/native_support.hpp"
-#include "src/buildtool/file_system/git_cas.hpp"
+#include "src/buildtool/file_system/git_repo.hpp"
#include "src/buildtool/file_system/object_type.hpp"
#include "src/utils/cpp/hex_string.hpp"
@@ -28,7 +28,7 @@
auto BlobTree::FromDirectoryTree(DirectoryTreePtr const& tree,
std::filesystem::path const& parent) noexcept
-> std::optional<BlobTreePtr> {
- GitCAS::tree_entries_t entries;
+ GitRepo::tree_entries_t entries;
std::vector<BlobTreePtr> nodes;
try {
entries.reserve(tree->size());
@@ -63,7 +63,7 @@ auto BlobTree::FromDirectoryTree(DirectoryTreePtr const& tree,
object_info->type);
}
}
- if (auto git_tree = GitCAS::CreateShallowTree(entries)) {
+ if (auto git_tree = GitRepo::CreateShallowTree(entries)) {
bazel_re::Digest digest{};
digest.set_hash(NativeSupport::Prefix(ToHexString(git_tree->first),
/*is_tree=*/true));