]> Kevux Git Server - rit/commit
t2203: avoid suppressing git status exit code
authorJialong Wang <jerrywang183@yahoo.com>
Tue, 17 Mar 2026 01:15:44 +0000 (21:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Mar 2026 04:29:49 +0000 (21:29 -0700)
commit4c2390067030d67c1b79fd96eb656ae63b91643b
treec887bed3b0bd11683733e4d2cb60ce4ade774b00
parentca1db8a0f7dc0dbea892e99f5b37c5fe5861be71
t2203: avoid suppressing git status exit code

When git status is piped into grep, the exit status of the Git
command is hidden by the pipeline. Capture the status output in a
temporary file first, and then filter it as needed, so that any
failure from git status is still noticed by the test suite.

Signed-off-by: Jialong Wang <jerrywang183@yahoo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2203-add-intent.sh