use super::execute_cmd;
use std::path::Path;
pub fn fetch(workspace: &Path, threads: usize) -> anyhow::Result<()> {
let cmd = [
"fetch",
"--all",
"--prune",
"--recurse-submodules=on-demand",
"--progress",
];
execute_cmd(
workspace,
threads,
"git".to_string(),
cmd.iter().map(|s| (*s).to_string()).collect(),
)?;
Ok(())
}