From 5c1e3111f2a86b37d89ddc3e49cc185592a77404 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sat, 13 Apr 2019 17:07:47 +0300 Subject: [PATCH] Fix tag ordering issue in release script. --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 4c441b1..1f2c66a 100755 --- a/release.sh +++ b/release.sh @@ -51,7 +51,7 @@ echo OK echo -n "Fetching previous tags from GitHub... " git fetch --tags --quiet -tag_prev="$(git tag | tail -n 1)" # figure out the latest tag +tag_prev="$(git log --tags --simplify-by-decoration --pretty="%D" | grep tag: | cut -d ' ' -f 2 | head -n 1)" # figure out the latest tag (https://stackoverflow.com/a/6900369) echo OK echo