From e0c38d7083e6c972a432bfff3a9863f251f2170c Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Tue, 21 Mar 2023 15:45:29 +0100 Subject: 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. --- src/other_tools/just_mr/main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/other_tools/just_mr/main.cpp') 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, -- cgit v1.2.3