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}