summaryrefslogtreecommitdiff
path: root/src/other_tools/root_maps/commit_git_map.cpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-02-11 08:52:48 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-02-11 16:32:15 +0100
commit11279f7e7a808d5440ebfeaa734b892d202094e0 (patch)
tree1b1a61165423a40953835f51df6dbdb9aec29af2 /src/other_tools/root_maps/commit_git_map.cpp
parentecf06437292740589533d87d527efd1020d4fca7 (diff)
downloadjustbuild-11279f7e7a808d5440ebfeaa734b892d202094e0.tar.gz
checkout locations: support extra environment variables to inherit
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)) {