From 34f6539a42e6d18b1a882e968d69f3e367baa1ec Mon Sep 17 00:00:00 2001 From: sterni Date: Sun, 16 Feb 2025 20:58:23 +0100 Subject: [PATCH] refactor(sterni/git-only-push): use --reverse over tac(1) Change-Id: I29375563eb1395f23175446dbbd9a760ddaaffad Reviewed-on: https://cl.tvl.fyi/c/depot/+/13153 Autosubmit: sterni Tested-by: BuildkiteCI Reviewed-by: sterni --- users/sterni/git-only-push/git-only-push.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/sterni/git-only-push/git-only-push.sh b/users/sterni/git-only-push/git-only-push.sh index 71cddeb94..dd49204ea 100755 --- a/users/sterni/git-only-push/git-only-push.sh +++ b/users/sterni/git-only-push/git-only-push.sh @@ -107,7 +107,7 @@ fi for arg in "$@"; do # Resolve ranges, get them into chronological order - revs="$(git -C "$repo" rev-list --no-walk "$arg" | tac)" + revs="$(git -C "$repo" rev-list --reverse --no-walk "$arg")" for rev in $revs; do if $dry; then