{"thread":{"id":"65375","subject":"[GSoC PATCH] t6101: avoid suppressing git's exit code","startedAt":"2026-03-28T13:59:41Z","lastAt":"2026-03-28T13:59:41Z","messageCount":1,"participants":["Trieu Huynh"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"540270","messageId":"20260328135935.180646-1-vikingtc4@gmail.com","threadId":"65375","inReplyTo":null,"subject":"[GSoC PATCH] t6101: avoid suppressing git's exit code","fromName":"Trieu Huynh","fromEmail":"vikingtc4@gmail.com","sentAt":"2026-03-28T13:59:35Z","receivedAt":"2026-03-28T13:59:41Z","isPatch":true,"sender":{"key":"vikingtc4@gmail.com","avatar":"https://avatars.githubusercontent.com/u/86428744?v=4"},"body":"Update t6101-rev-parse-parents.sh to redirect git-rev-parse\noutput to a temporary file instead of piping it directly to\nnot hide the exit code of git commands behind pipes, as a\ncrash in git might go unnoticed.\n\nSigned-off-by: Trieu Huynh <vikingtc4@gmail.com>\n---\n t/t6101-rev-parse-parents.sh | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)\n\ndiff --git a/t/t6101-rev-parse-parents.sh b/t/t6101-rev-parse-parents.sh\nindex 5f55ab98d3..7281889717 100755\n--- a/t/t6101-rev-parse-parents.sh\n+++ b/t/t6101-rev-parse-parents.sh\n@@ -39,7 +39,8 @@ test_expect_success 'setup' '\n '\n \n test_expect_success 'start is valid' '\n-\tgit rev-parse start | grep \"^$OID_REGEX$\"\n+\tgit rev-parse start >actual &&\n+\ttest_grep \"^$OID_REGEX$\" actual\n '\n \n test_expect_success 'start^0' '\n-- \n2.43.0\n\n"}]}