set BootstrapCommand output mode for submodules

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2023-10-28 20:02:41 +03:00
parent 3bb0c94eb6
commit 236f6ba261

View File

@ -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));