From: Trieu Huynh Date: Sat, 28 Mar 2026 20:02:54 GMT Subject: [GSoC PATCH 15/16] t0100: avoid suppressing git's exit code Message-ID: <20260328200255.247759-16-vikingtc4@gmail.com> In-Reply-To: <20260328200255.247759-1-vikingtc4@gmail.com> Update t0100-previous.sh to redirect git-cmds output to a temporary file instead of piping it directly to not hide the exit code of git commands behind pipes, as a crash in git might go unnoticed. Signed-off-by: Trieu Huynh --- t/t0100-previous.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t0100-previous.sh b/t/t0100-previous.sh index dd5d9b4e5e..94a12e4ab6 100755 --- a/t/t0100-previous.sh +++ b/t/t0100-previous.sh @@ -40,7 +40,8 @@ test_expect_success 'merge @{-1}' ' git checkout other && git checkout main && git merge @{-1} && - git cat-file commit HEAD | grep "Merge branch '\''other'\''" + git cat-file commit HEAD >actual && + test_grep "Merge branch '\''other'\''" actual ' test_expect_success 'merge @{-1}~1' ' -- 2.43.0