From: Trieu Huynh Date: Sat, 28 Mar 2026 20:02:46 GMT Subject: [GSoC PATCH 07/16] t4153: avoid suppressing git's exit code Message-ID: <20260328200255.247759-8-vikingtc4@gmail.com> In-Reply-To: <20260328200255.247759-1-vikingtc4@gmail.com> Update t4153-am-resume-override-opts.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/t4153-am-resume-override-opts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t4153-am-resume-override-opts.sh b/t/t4153-am-resume-override-opts.sh index 9bec989a0e..30137aec20 100755 --- a/t/t4153-am-resume-override-opts.sh +++ b/t/t4153-am-resume-override-opts.sh @@ -81,7 +81,8 @@ test_expect_success '--signoff overrides --no-signoff' ' # Applied side1 will be signed off echo "Signed-off-by: $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>" >expected && - git cat-file commit HEAD^ | grep "Signed-off-by:" >actual && + git cat-file commit HEAD^ >commit_raw && + test_grep "Signed-off-by:" commit_raw >actual && test_cmp expected actual && # Applied side2 will not be signed off -- 2.43.0