From 1e1d2815a226b2bf7b516e27853d2057ac3b86f5 Mon Sep 17 00:00:00 2001 From: pagedmov Date: Sun, 17 Nov 2024 08:23:42 -0500 Subject: [PATCH] git reset in subshell no longer displays output --- overlay/scripts/commands/git-compose.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/scripts/commands/git-compose.nix b/overlay/scripts/commands/git-compose.nix index c7ab05b..d7471f6 100644 --- a/overlay/scripts/commands/git-compose.nix +++ b/overlay/scripts/commands/git-compose.nix @@ -16,7 +16,7 @@ pkgs.writeShellApplication { ( cd "$toplevel" || { echo "Failed to change to repo root"; exit 1; } - git reset + git reset > /dev/null 2>&1 unstaged=$(git status --porcelain | awk '{print $2}') || { echo "Failed to get git status"; exit 1; } if [ -z "$unstaged" ]; then