// Try passing `--progress` to start, then run git again without if that fails.
let update = |progress: bool| {
let mut git = Command::new("git");
- git.args(&["submodule", "update", "--init", "--recursive"]);
+ git.args(&["submodule", "update", "--init", "--recursive", "--depth=1"]);
if progress {
git.arg("--progress");
}
return;
}
self.verbose(&format!("running: {:?}", cmd));
- run(cmd)
+ run(cmd, self.is_verbose())
}
/// Runs a command, printing out nice contextual information if it fails.
return true;
}
self.verbose(&format!("running: {:?}", cmd));
- try_run(cmd)
+ try_run(cmd, self.is_verbose())
}
/// Runs a command, printing out nice contextual information if it fails.