]> git.ozlabs.org Git - next-scripts/blobdiff - make_tree_file
update to_build_host a bit
[next-scripts] / make_tree_file
index 43473c27154955da4c09b5bcd957d680b996ff52..75614f6bb80595c39b1944d1ca14e4f84f2985f0 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
@@ -32,7 +32,7 @@ mkdir Next
                while read email type name url ref build; do
                        [ "$type" = "branch" ] && continue
                        tab="\t"
-                       [ ${#name} -le 8 ] && tab="\t\t"
+                       [ ${#name} -lt 8 ] && tab="\t\t"
                        [ "$type" = "git" ] && url="$url#${ref##*:}"
                        printf "%s$tab%s\t%s\n" $name $type $url
                done