1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-16 10:51:42 +02:00

Ignore stdout of git init

This commit is contained in:
mo8it 2024-08-17 14:40:09 +02:00
parent 0b3ad9141b
commit 6ce31defb6

View File

@ -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(),
)?;