From 5bc6265b2ffe43370b4cddd0a9e4c09b059ef131 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 26 Jun 2024 16:07:58 +0200 Subject: Pass StorageConfig to git_repo and git_repo_remote --- src/other_tools/git_operations/git_repo_remote.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/other_tools/git_operations/git_repo_remote.hpp') diff --git a/src/other_tools/git_operations/git_repo_remote.hpp b/src/other_tools/git_operations/git_repo_remote.hpp index c59fb48e..53987e58 100644 --- a/src/other_tools/git_operations/git_repo_remote.hpp +++ b/src/other_tools/git_operations/git_repo_remote.hpp @@ -22,6 +22,7 @@ #include #include "src/buildtool/file_system/git_repo.hpp" +#include "src/buildtool/storage/config.hpp" extern "C" { struct git_config; @@ -87,6 +88,7 @@ class GitRepoRemote : public GitRepo { /// Returns the commit hash, as a string, or nullopt if failure. /// It guarantees the logger is called exactly once with fatal if failure. [[nodiscard]] auto UpdateCommitViaTmpRepo( + StorageConfig const& storage_config, std::string const& repo_url, std::string const& branch, std::vector const& inherit_env, @@ -103,6 +105,7 @@ class GitRepoRemote : public GitRepo { /// Returns a success flag. /// It guarantees the logger is called exactly once with fatal if failure. [[nodiscard]] auto FetchViaTmpRepo( + StorageConfig const& storage_config, std::string const& repo_url, std::optional const& branch, std::vector const& inherit_env, -- cgit v1.2.3