From: Stephen Rothwell Date: Thu, 15 Apr 2021 22:18:01 +0000 (+1000) Subject: make_tree_file: make finding the latest tag in Linus' tree more reliable X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=9786b5639c8363664e88518aea3f0b0ea8496aa8;p=next-scripts make_tree_file: make finding the latest tag in Linus' tree more reliable --- diff --git a/make_tree_file b/make_tree_file index 43473c2..fbb1530 100755 --- a/make_tree_file +++ b/make_tree_file @@ -14,7 +14,7 @@ ssh git@gitolite.kernel.org 2fa val-session $tok # This means I get the right tag if I finish after midnight d=$(date --date "5 hours ago" '+%Y%m%d') -l="$(git describe --match "v*" --abbrev=0)" +l=$(git tag -l --sort=taggerdate 'v*' | tail -n 1) n="next-$d" mkdir Next