From 44a9b281953bf937f907026076ca9eb72c49be5c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 18 Mar 2019 21:41:50 -0400 Subject: scripts/announce-release.sh: Fix old tag retrieval --- (limited to 'scripts') diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh index 93c9f55..dc0b35f 100755 --- a/scripts/announce-release.sh +++ b/scripts/announce-release.sh @@ -38,7 +38,7 @@ news="$(sed -n ' ' "${srcdir}/NEWS")" old_version="$(sed -n "/^${package_name} version /p;" "${srcdir}/NEWS" | \ sed -n "2{ s/^${package_name} version //p; };")" -old_tag="$(git tag | tail -n 1)" +old_tag="$(git tag --sort=creatordate | tail -n 2 | head -n 1)" export GIT_DIR="${srcdir}/.git" -- cgit v0.9.1