@matheusbsbs / matheus-bagliano / commits / 9d13dec549
Fork 0

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>

Thomas Rast committed Sep 1, 2008 at 00:31 UTC 9d13dec5499ec31a93dd22db9b0c971133a10613
1 file changed +2 -2
t/t6013-rev-list-reverse-parents.sh
+2 -2
@@ -25,7 +25,7 @@ test_expect_success 'set up --reverse example' '
25
26 test_expect_success '--reverse --parents --full-history combines correctly' '
27 git rev-list --parents --full-history master -- foo |
28 - tac > expected &&
28 + perl -e "print reverse <>" > expected &&
29 git rev-list --reverse --parents --full-history master -- foo \
30 > actual &&
31 test_cmp actual expected
@@ -33,7 +33,7 @@ test_expect_success '--reverse --parents --full-history combines correctly' '
33
34 test_expect_success '--boundary does too' '
35 git rev-list --boundary --parents --full-history master ^root -- foo |
36 - tac > expected &&
36 + perl -e "print reverse <>" > expected &&
37 git rev-list --boundary --reverse --parents --full-history \
38 master ^root -- foo > actual &&
39 test_cmp actual expected