From 6b8f6148bba37e4375f6974b80002e9da47fa77f Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 23 Mar 2017 15:51:12 +0100 Subject: [PATCH] Fix tags sort --- hooks/prebuild/debian/create-changelog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/prebuild/debian/create-changelog b/hooks/prebuild/debian/create-changelog index 4764c9c..1cf2423 100755 --- a/hooks/prebuild/debian/create-changelog +++ b/hooks/prebuild/debian/create-changelog @@ -15,7 +15,7 @@ tamarin_debug "BUILD TAG IS ${BUILD_TAG}" if [[ ${BUILD_TAG} == "last" ]] then - tags=$(git tag master -l "release/*"|sort -r) + tags=$(git tag master -l "release/*" | tr '_' '-' | sort -rV) else tagbranch="build-tag-${BUILD_TAG}" git checkout -b ${tagbranch}