so push to kernel.org with --prune to manage the remote ones
oldest=$(date --date "3 months ago" '+%Y%m%d')
echo "Removing old releases ... <= next-$oldest"
-old_tags=$(git ls-remote --tags korg 'next-*[0-9]' |
+old_tags=$(git tag -l 'next-*[0-9]' |
awk -F - '$2 ~ /^[0-9]*$/ && $2 <= '$oldest' { printf("next-%s\n", $2); }')
-[ "$old_tags" ] && git push korg --delete $old_tags
+[ "$old_tags" ] && git tag -d $old_tags
echo Pushing to korg ...
-git push korg
+git push --prune korg
echo Pushing to korg-history ...
git push korg-history