Skip to content

Commit a733ec8

Browse files
committed
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 <[email protected]>
1 parent 926d18e commit a733ec8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/t6120-describe.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,15 @@ test_expect_success 'name-rev --annotate-stdin' '
292292
echo "$rev ($name)" >>expect.unsorted || return 1
293293
done &&
294294
sort <expect.unsorted >expect &&
295-
git rev-list --all | git name-rev --annotate-stdin >actual.unsorted &&
295+
git rev-list --all >list &&
296+
git name-rev --annotate-stdin <list >actual.unsorted &&
296297
sort <actual.unsorted >actual &&
297298
test_cmp expect actual
298299
'
299300

300301
test_expect_success 'name-rev --stdin deprecated' "
301-
git rev-list --all | git name-rev --stdin 2>actual &&
302+
git rev-list --all >list &&
303+
git name-rev --stdin <list 2>actual &&
302304
grep -E 'warning: --stdin is deprecated' actual
303305
"
304306

0 commit comments

Comments
 (0)