From 11279f7e7a808d5440ebfeaa734b892d202094e0 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 11 Feb 2025 08:52:48 +0100 Subject: checkout locations: support extra environment variables to inherit --- src/other_tools/root_maps/commit_git_map.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/other_tools/root_maps/commit_git_map.cpp') diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp index 9acc5e1b..2b89c819 100644 --- a/src/other_tools/root_maps/commit_git_map.cpp +++ b/src/other_tools/root_maps/commit_git_map.cpp @@ -413,6 +413,9 @@ void NetworkFetchAndSetPresentRoot( all_mirrors.insert( all_mirrors.begin(), local_mirrors.begin(), local_mirrors.end()); + auto inherit_env = + MirrorsUtils::GetInheritEnv(additional_mirrors, repo_info.inherit_env); + for (auto mirror : all_mirrors) { auto mirror_path = GitURLIsPath(mirror); if (mirror_path) { @@ -426,7 +429,7 @@ void NetworkFetchAndSetPresentRoot( if (git_repo->FetchViaTmpRepo(native_storage_config, mirror, repo_info.branch, - repo_info.inherit_env, + inherit_env, git_bin, launcher, wrapped_logger)) { -- cgit v1.2.3