diff --git a/hooks/prebuild/debian/create-changelog b/hooks/prebuild/debian/create-changelog index 1cf2423..496ba8d 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/*" | tr '_' '-' | sort -rV) + tags=$(git describe --match "release/*" --abbrev=0) else tagbranch="build-tag-${BUILD_TAG}" git checkout -b ${tagbranch}