summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/commit_git_map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/root_maps/commit_git_map.cpp')
-rw-r--r--src/other_tools/root_maps/commit_git_map.cpp5
1 files changed, 4 insertions, 1 deletions
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)) {