Subject: Re: [GSoC PATCH 00/16] Microproject: avoid suppressing git's exit code

From: Junio C Hamano <[email-masked]>
Date: Sat, 28 Mar 2026 17:44:48 -0700

Trieu Huynh <[email-masked]> writes:

> Piping git command output directly to subsequent command (eg. grep)
> hides the exit code of git behind the pipe.  A crash in git would go
> unnoticed because the shell only sees grep's exit code.
>
> This series extends the same fix to 16 more test files, following the
> approach introduced in t8003 [1] (redirect output to a temporary file,
> then use test_grep on that file).
>
> Note: t2206 is a special case -- some tests cd into a subdirectory
> that is itself a git repo and run 'git add .' on the whole working
> tree.  To prevent the temporary file from being accidentally staged,
> it is written as '../actual', outside the inner repo.
>
> Related-to: https://lore.kernel.org/git/[email-masked]/T/#t
> See-also: https://lore.kernel.org/git/[email-masked]/T/#t

See also https://git.github.io/General-Microproject-Information/#:~:text=Only%20ONE%20quality%20focused%20microproject%20per%20applicant

Thanks.