diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-26 16:07:58 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | 5bc6265b2ffe43370b4cddd0a9e4c09b059ef131 (patch) | |
tree | 63619c3d43f97c4ffa16feb9094fc8631620b164 /src/other_tools/ops_maps/git_update_map.cpp | |
parent | 3440784e94de51c95d3dcca8509f8e46b4722ee6 (diff) | |
download | justbuild-5bc6265b2ffe43370b4cddd0a9e4c09b059ef131.tar.gz |
Pass StorageConfig to git_repo and git_repo_remote
Diffstat (limited to 'src/other_tools/ops_maps/git_update_map.cpp')
-rw-r--r-- | src/other_tools/ops_maps/git_update_map.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/other_tools/ops_maps/git_update_map.cpp b/src/other_tools/ops_maps/git_update_map.cpp index 9886b84b..143000bc 100644 --- a/src/other_tools/ops_maps/git_update_map.cpp +++ b/src/other_tools/ops_maps/git_update_map.cpp @@ -16,6 +16,7 @@ #include "fmt/core.h" #include "src/buildtool/execution_api/local/config.hpp" +#include "src/buildtool/storage/config.hpp" #include "src/buildtool/storage/fs_utils.hpp" #include "src/other_tools/just_mr/progress_reporting/progress.hpp" #include "src/other_tools/just_mr/progress_reporting/statistics.hpp" @@ -48,12 +49,14 @@ auto CreateGitUpdateMap(GitCASPtr const& git_cas, // update commit auto id = fmt::format("{}:{}", key.repo, key.branch); JustMRProgress::Instance().TaskTracker().Start(id); - auto new_commit = git_repo->UpdateCommitViaTmpRepo(key.repo, - key.branch, - key.inherit_env, - git_bin, - launcher, - wrapped_logger); + auto new_commit = + git_repo->UpdateCommitViaTmpRepo(StorageConfig::Instance(), + key.repo, + key.branch, + key.inherit_env, + git_bin, + launcher, + wrapped_logger); JustMRProgress::Instance().TaskTracker().Stop(id); if (not new_commit) { return; |