From f7dc27f67ec3d452c7f4f7a3a8f919d9000076ba Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 11 Apr 2024 18:13:38 +0100 Subject: [PATCH] feat: git command output is suppressed Closes kemitix/git-next#27 --- src/server/actors/repo/branch.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/actors/repo/branch.rs b/src/server/actors/repo/branch.rs index ac2be6e7..4fcf9b9a 100644 --- a/src/server/actors/repo/branch.rs +++ b/src/server/actors/repo/branch.rs @@ -217,6 +217,8 @@ pub fn reset( info!("Running command: {}", command); match gix::command::prepare(command) .with_shell_allow_argument_splitting() + .stdout(std::process::Stdio::null()) + .stderr(std::process::Stdio::null()) .spawn() { Ok(mut child) => match child.wait() {