diff options
Diffstat (limited to 'contrib/ci/jobs/4-taler-harness-deb-package/version.sh')
-rwxr-xr-x | contrib/ci/jobs/4-taler-harness-deb-package/version.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/ci/jobs/4-taler-harness-deb-package/version.sh b/contrib/ci/jobs/4-taler-harness-deb-package/version.sh index d2647785e..52031b23a 100755 --- a/contrib/ci/jobs/4-taler-harness-deb-package/version.sh +++ b/contrib/ci/jobs/4-taler-harness-deb-package/version.sh @@ -7,10 +7,10 @@ if [ -z "${BRANCH}" ]; then else # "Unshallow" our checkout, but only our current branch, and exclude the submodules. git fetch --no-recurse-submodules --tags --depth=1000 origin "${BRANCH}" - RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --always --abbrev=0 HEAD || exit 1) + RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --exclude '*-dev*' --always --abbrev=0 HEAD || exit 1) commits="$(git rev-list ${RECENT_VERSION_TAG}..HEAD --count)" if [ "${commits}" = "0" ]; then - git describe --tag HEAD || exit 1 + git describe --tag HEAD | sed -r 's/^v//' || exit 1 else echo $(echo ${RECENT_VERSION_TAG} | sed -r 's/^v//')-${commits}-$(git rev-parse --short=8 HEAD) fi |