Subject: [GSoC PATCH 02/16] t6423: avoid suppressing git's exit code

From: Trieu Huynh <[email-masked]>
Date: Sun, 29 Mar 2026 05:02:41 +0900

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 <[email-masked]>
---
 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