Skip to content

Commit 9d13dec

Browse files
trastgitster
authored andcommitted
t6013: replace use of 'tac' with equivalent Perl
'tac' is not available everywhere, so substitute the equivalent Perl code 'print reverse <>'. Noticed by Brian Gernhardt. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 498bcd3 commit 9d13dec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t6013-rev-list-reverse-parents.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ test_expect_success 'set up --reverse example' '
2525

2626
test_expect_success '--reverse --parents --full-history combines correctly' '
2727
git rev-list --parents --full-history master -- foo |
28-
tac > expected &&
28+
perl -e "print reverse <>" > expected &&
2929
git rev-list --reverse --parents --full-history master -- foo \
3030
> actual &&
3131
test_cmp actual expected
3232
'
3333

3434
test_expect_success '--boundary does too' '
3535
git rev-list --boundary --parents --full-history master ^root -- foo |
36-
tac > expected &&
36+
perl -e "print reverse <>" > expected &&
3737
git rev-list --boundary --reverse --parents --full-history \
3838
master ^root -- foo > actual &&
3939
test_cmp actual expected

0 commit comments

Comments
 (0)