summaryrefslogtreecommitdiff
path: root/src/buildtool/common/repository_config.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/common/repository_config.hpp')
-rw-r--r--src/buildtool/common/repository_config.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/buildtool/common/repository_config.hpp b/src/buildtool/common/repository_config.hpp
index 1a2f5be1..7fe66fa2 100644
--- a/src/buildtool/common/repository_config.hpp
+++ b/src/buildtool/common/repository_config.hpp
@@ -87,19 +87,18 @@ class RepositoryConfig {
[[nodiscard]] auto ReadBlobFromGitCAS(
std::string const& hex_id,
+ bool is_symlink,
LogLevel log_failure = LogLevel::Warning) const noexcept
-> std::optional<std::string> {
return git_cas_ ? git_cas_->ReadObject(hex_id,
/*is_hex_id=*/true,
- /*validate=*/false,
+ /*as_valid_symlink=*/is_symlink,
log_failure)
: std::nullopt;
}
[[nodiscard]] auto ReadTreeFromGitCAS(
- std::string const& hex_id) const noexcept -> std::optional<GitTree> {
- return git_cas_ ? GitTree::Read(git_cas_, hex_id) : std::nullopt;
- }
+ std::string const& hex_id) const noexcept -> std::optional<GitTree>;
[[nodiscard]] auto WorkspaceRoot(std::string const& repo) const noexcept
-> FileRoot const* {