From: Trieu Huynh Date: Sat, 28 Mar 2026 20:02:41 GMT Subject: [GSoC PATCH 02/16] t6423: avoid suppressing git's exit code Message-ID: <20260328200255.247759-3-vikingtc4@gmail.com> In-Reply-To: <20260328200255.247759-1-vikingtc4@gmail.com> Update t6423-merge-rename-directories.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/t6423-merge-rename-directories.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/t6423-merge-rename-directories.sh b/t/t6423-merge-rename-directories.sh index 53535a8ebf..52665cedcd 100755 --- a/t/t6423-merge-rename-directories.sh +++ b/t/t6423-merge-rename-directories.sh @@ -2273,7 +2273,8 @@ test_expect_success '8c: modify/delete or rename+modify/delete' ' test_cmp expect actual && test_must_fail git rev-parse :2:z/d && - git ls-files -s z/d | grep ^100755 && + git ls-files -s z/d >actual && + test_grep "^100755" actual && test_path_is_file z/d && test_path_is_missing y/d ) -- 2.43.0