From a94184ff1b3445897ddd2252021943c4b3481e52 Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Tue, 18 Oct 2022 22:53:39 -0700 Subject: [PATCH] Improve cut_version.sh understanding of old versions. --- cut_version.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cut_version.sh b/cut_version.sh index 094814d..7e40e98 100755 --- a/cut_version.sh +++ b/cut_version.sh @@ -43,6 +43,8 @@ fi VERSION=$1 PREVIOUS_VERSION=$(git tag --sort=-creatordate | head -1) +git tag --format='%(creatordate:short)%09%(refname:strip=2)' +echo echo "PREVIOUS_VERSION=${PREVIOUS_VERSION}" echo if ! ask_y_n "About to cut (build, test, package, give you the command to upload) $VERSION, ok?" "N"; then -- 2.46.0