summaryrefslogtreecommitdiff
path: root/src/other_tools/just_mr/main.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-03-21 15:45:29 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-03-23 09:50:43 +0100
commite0c38d7083e6c972a432bfff3a9863f251f2170c (patch)
tree1290f8c97f99194089db67f61b23d79ad542b2ab /src/other_tools/just_mr/main.cpp
parent12d0c288ea23e1bd7e0401223ba413bca3d94869 (diff)
downloadjustbuild-e0c38d7083e6c972a432bfff3a9863f251f2170c.tar.gz
just-mr: Update calls to fetch and update operations...
...to ensure the temporary directories exist before they are needed, as expected by those methods. This way, the TmpDir class takes care to also clean up after itself. Also, pass the local launcher to the methods that now shell out.
Diffstat (limited to 'src/other_tools/just_mr/main.cpp')
-rw-r--r--src/other_tools/just_mr/main.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/other_tools/just_mr/main.cpp b/src/other_tools/just_mr/main.cpp
index bba90162..9f2a47ce 100644
--- a/src/other_tools/just_mr/main.cpp
+++ b/src/other_tools/just_mr/main.cpp
@@ -1007,8 +1007,9 @@ void DefaultReachableRepositories(
// Initialize resulting config to be updated
auto mr_config = config->ToJson();
// Create async map
- auto git_update_map =
- CreateGitUpdateMap(git_repo->GetGitCAS(), arguments.common.jobs);
+ auto git_update_map = CreateGitUpdateMap(git_repo->GetGitCAS(),
+ *arguments.common.local_launcher,
+ arguments.common.jobs);
// set up progress observer
JustMRProgress::Instance().SetTotal(repos_to_update.size());
@@ -1116,10 +1117,13 @@ void DefaultReachableRepositories(
arguments.common.ca_info,
arguments.common.jobs);
auto import_to_git_map =
- CreateImportToGitMap(&critical_git_op_map, arguments.common.jobs);
+ CreateImportToGitMap(&critical_git_op_map,
+ *arguments.common.local_launcher,
+ arguments.common.jobs);
auto commit_git_map = CreateCommitGitMap(&critical_git_op_map,
arguments.common.just_mr_paths,
+ *arguments.common.local_launcher,
arguments.common.jobs);
auto content_git_map = CreateContentGitMap(&content_cas_map,
&import_to_git_map,