From: Junio C Hamano Date: Tue, 11 Mar 2025 21:25:03 +0000 (-0700) Subject: t6120: avoid hiding "git" exit status X-Git-Tag: v2.50.0-rc0~153^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a733ec8a9ea036647a3be110a46db66da60fe5fd;p=thirdparty%2Fgit.git t6120: avoid hiding "git" exit status A handful of tests invoke "git" on the upstream side of a pipe, hiding its exit status. Correct them. Signed-off-by: Junio C Hamano --- diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh index 76843a6169..dcb526e37d 100755 --- a/t/t6120-describe.sh +++ b/t/t6120-describe.sh @@ -292,13 +292,15 @@ test_expect_success 'name-rev --annotate-stdin' ' echo "$rev ($name)" >>expect.unsorted || return 1 done && sort expect && - git rev-list --all | git name-rev --annotate-stdin >actual.unsorted && + git rev-list --all >list && + git name-rev --annotate-stdin actual.unsorted && sort actual && test_cmp expect actual ' test_expect_success 'name-rev --stdin deprecated' " - git rev-list --all | git name-rev --stdin 2>actual && + git rev-list --all >list && + git name-rev --stdin actual && grep -E 'warning: --stdin is deprecated' actual "