diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-03-11 14:25:03 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-12 08:48:54 -0700 |
| commit | a733ec8a9ea036647a3be110a46db66da60fe5fd (patch) | |
| tree | 161f47a7d31d060f59afec7dbebeb2ca008c8565 | |
| parent | 926d18e58dc13f1c095006e7c8bdfa25ad707830 (diff) | |
| download | git-a733ec8a9ea036647a3be110a46db66da60fe5fd.tar.gz | |
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 <gitster@pobox.com>
| -rwxr-xr-x | t/t6120-describe.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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.unsorted >expect && - git rev-list --all | git name-rev --annotate-stdin >actual.unsorted && + git rev-list --all >list && + git name-rev --annotate-stdin <list >actual.unsorted && sort <actual.unsorted >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 <list 2>actual && grep -E 'warning: --stdin is deprecated' actual " |
