From 6ce31defb6386541e015c7905add3a6c138b35c6 Mon Sep 17 00:00:00 2001 From: mo8it Date: Sat, 17 Aug 2024 14:40:09 +0200 Subject: [PATCH] Ignore stdout of git init --- src/init.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/init.rs b/src/init.rs index 3a7ccf4..95b04e9 100644 --- a/src/init.rs +++ b/src/init.rs @@ -139,13 +139,14 @@ pub fn init() -> Result<()> { let _ = Command::new("git") .arg("init") .stdin(Stdio::null()) + .stdout(Stdio::null()) .stderr(Stdio::null()) .status(); } writeln!( stdout, - "\n{}\n\n{}", + "{}\n\n{}", "Initialization done ✓".green(), POST_INIT_MSG.bold(), )?;