From 236f6ba261593e9704af8fe188ace73b3e395594 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Sat, 28 Oct 2023 20:02:41 +0300 Subject: [PATCH] set `BootstrapCommand` output mode for submodules Signed-off-by: onur-ozkan --- src/bootstrap/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/src/lib.rs b/src/bootstrap/src/lib.rs index 8dd1a698dfa..d7f49a6d11b 100644 --- a/src/bootstrap/src/lib.rs +++ b/src/bootstrap/src/lib.rs @@ -586,7 +586,11 @@ pub(crate) fn update_submodule(&self, relative_path: &Path) { .args(&["diff-index", "--quiet", "HEAD"]) .current_dir(&absolute_path), ) - .allow_failure(), + .allow_failure() + .output_mode(match self.is_verbose() { + true => OutputMode::PrintAll, + false => OutputMode::PrintOutput, + }), ); if has_local_modifications { self.run(Command::new("git").args(&["stash", "push"]).current_dir(&absolute_path));