From bf4672864dc7ffe9f54b447d220cf58af36396ae Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 25 Jan 2020 17:25:08 +0100 Subject: [PATCH] Fix #7960: use the same method as findversion.sh to determine tag --- azure-pipelines/changelog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines/changelog.sh b/azure-pipelines/changelog.sh index be665a5a08..8231f66672 100755 --- a/azure-pipelines/changelog.sh +++ b/azure-pipelines/changelog.sh @@ -1,6 +1,6 @@ #!/bin/sh -tag=$(git describe --tags 2>/dev/null) +tag=$(git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null | sed 's@\^0$@@') # If we are a tag, show the part of the changelog till (but excluding) the last stable if [ -n "$tag" ]; then