summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/fetch.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-26 09:38:36 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 11:24:20 +0200
commit76badf37b88c23081db72c206445d5f0bf4e28a4 (patch)
tree2376106b12c7664f80d9195e41371d3d31d0988d /src/other_tools/just_mr/fetch.cpp
parent915d3f2b0119f8bd31d026e686dbaf9124186e61 (diff)
downloadjustbuild-76badf37b88c23081db72c206445d5f0bf4e28a4.tar.gz
Pass ServeApi to just-mr maps by raw pointer
...since it is used for capturing in lambdas for AsyncMaps and mustn't be temporary.
Diffstat (limited to 'src/other_tools/just_mr/fetch.cpp')
-rw-r--r--src/other_tools/just_mr/fetch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/other_tools/just_mr/fetch.cpp b/src/other_tools/just_mr/fetch.cpp
index ab6e593b..d0018ba4 100644
--- a/src/other_tools/just_mr/fetch.cpp
+++ b/src/other_tools/just_mr/fetch.cpp
@@ -444,7 +444,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config,
common_args.alternative_mirrors,
common_args.ca_info,
&critical_git_op_map,
- serve,
+ serve ? &*serve : nullptr,
&(*apis.local),
has_remote_api ? &*apis.remote : nullptr,
common_args.jobs);
@@ -468,7 +468,7 @@ auto MultiRepoFetch(std::shared_ptr<Configuration> const& config,
&import_to_git_map,
common_args.git_path->string(),
*common_args.local_launcher,
- serve,
+ serve ? &*serve : nullptr,
&(*apis.local),
has_remote_api ? &*apis.remote : nullptr,
fetch_args.backup_to_remote,