summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2021-10-02 17:44:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-10-04 05:07:21 (GMT)
commit100c2da2d3a330366588143d720f09a88926972a (patch)
tree8b0b179a86605e353932b3ae1d993b0d29124cdb
parent225bc32a989d7a22fa6addafd4ce7dcd04675dbf (diff)
downloadgit-100c2da2d3a330366588143d720f09a88926972a.zip
git-100c2da2d3a330366588143d720f09a88926972a.tar.gz
git-100c2da2d3a330366588143d720f09a88926972a.tar.bz2
p3400: stop using tac(1)
b3dfeebb92 (rebase: avoid computing unnecessary patch IDs, 2016-07-29) added a perf test that calls tac(1) from GNU core utilities. Support systems without it by reversing the generated list using sort -nr instead. sort(1) with options -n and -r is already used in other tests. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/perf/p3400-rebase.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/perf/p3400-rebase.sh b/t/perf/p3400-rebase.sh
index 7a0bb29..43d5a34 100755
--- a/t/perf/p3400-rebase.sh
+++ b/t/perf/p3400-rebase.sh
@@ -18,7 +18,7 @@ test_expect_success 'setup rebasing on top of a lot of changes' '
test_tick &&
git commit -m commit$i unrelated-file$i &&
echo change$i >unrelated-file$i &&
- test_seq 1000 | tac >>unrelated-file$i &&
+ test_seq 1000 | sort -nr >>unrelated-file$i &&
git add unrelated-file$i &&
test_tick &&
git commit -m commit$i-reverse unrelated-file$i ||