From 811e9be4cc9604dba3d768639444c0d9f849a3c7 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 26 May 2025 14:46:25 +0200 Subject: RepositoryConfig: Give access to a persistent storage config... ...whenever it is given access to a Git repository. The referenced storage config needs to outlive the repository config instance. --- src/buildtool/tree_structure/tree_structure_utils.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buildtool/tree_structure/tree_structure_utils.hpp') diff --git a/src/buildtool/tree_structure/tree_structure_utils.hpp b/src/buildtool/tree_structure/tree_structure_utils.hpp index 7cecf7f8..93615cf0 100644 --- a/src/buildtool/tree_structure/tree_structure_utils.hpp +++ b/src/buildtool/tree_structure/tree_structure_utils.hpp @@ -67,12 +67,14 @@ class TreeStructureUtils final { /// regular GitApi for retrieval from git and doesn't perform rehashing. /// \param tree Tree to export /// \param source_repos Repositories to check + /// \param storage_config Storage to use for lookups /// \param target_api Api to export the tree to /// \return True if target api contains tree after the call, false if none /// of source repositories contain tree, or an error message on failure. [[nodiscard]] static auto ExportFromGit( ArtifactDigest const& tree, std::vector const& source_repos, + StorageConfig const& storage_config, IExecutionApi const& target_api) noexcept -> expected; -- cgit v1.2.3