]> git.ozlabs.org Git - next-scripts/commitdiff
make_tree_file: make finding the latest tag in Linus' tree more reliable
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Apr 2021 22:18:01 +0000 (08:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Apr 2021 22:18:01 +0000 (08:18 +1000)
make_tree_file

index 43473c27154955da4c09b5bcd957d680b996ff52..fbb1530b6fbd74910cc06c60ae978cba8887203f 100755 (executable)
@@ -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