Perform git pulls in parallel (fix #48)

This commit is contained in:
Roey Darwish Dror
2019-05-22 08:55:50 +03:00
parent 48653f555d
commit 2d15814996
5 changed files with 240 additions and 26 deletions

View File

@@ -199,14 +199,12 @@ fn run() -> Result<(), Error> {
}
}
}
for repo in git_repos.repositories() {
execute(
&mut report,
format!("git: {}", utils::HumanizedPath::from(std::path::Path::new(&repo))),
|| git.pull(&repo, run_type),
config.no_retry(),
)?;
}
execute(
&mut report,
"Git repositories",
|| git.multi_pull(&git_repos, run_type),
config.no_retry(),
)?;
#[cfg(windows)]
{