From: Scott Gasch Date: Wed, 19 Oct 2022 05:53:39 +0000 (-0700) Subject: Improve cut_version.sh understanding of old versions. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=a94184ff1b3445897ddd2252021943c4b3481e52;p=pyutils.git Improve cut_version.sh understanding of old versions. --- 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