diff options
author | glx <glx@openttd.org> | 2020-01-25 17:25:08 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2020-01-26 14:47:54 +0000 |
commit | bf4672864dc7ffe9f54b447d220cf58af36396ae (patch) | |
tree | 86dc6a67913d7652e9f0cd756e90365b24150351 /azure-pipelines | |
parent | c8779fb311c2665d3fc45c18b2f3460cd998d179 (diff) | |
download | openttd-bf4672864dc7ffe9f54b447d220cf58af36396ae.tar.xz |
Fix #7960: use the same method as findversion.sh to determine tag
Diffstat (limited to 'azure-pipelines')
-rwxr-xr-x | azure-pipelines/changelog.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azure-pipelines/changelog.sh b/azure-pipelines/changelog.sh index be665a5a0..8231f6667 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 |