summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 21:41:50 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-18 21:41:50 (EDT)
commit44a9b281953bf937f907026076ca9eb72c49be5c (patch)
tree80d4b70a6d0870e819331b2cdc73bba8381c11b6 /scripts
parent32362367c62c1ed588e1a5697450e0ec3ad61847 (diff)
scripts/announce-release.sh: Fix old tag retrieval
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/announce-release.sh2
1 files changed, 1 insertions, 1 deletions
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"