commit 9d3b51d1301a79f4126c74fa8df0811221a8fda2
parent 8f0d47a17a2badd15ce0c836ee564f52cc1bc29d
Author: Devan Carpenter <devan@taler.net>
Date: Tue, 9 Apr 2024 07:49:58 -0400
ci: remove the leading v character from tags
debian doesn't want a v at the start of the version string
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/ci/jobs/4-deb-package/version.sh b/contrib/ci/jobs/4-deb-package/version.sh
@@ -10,7 +10,7 @@ else
RECENT_VERSION_TAG=$(git describe --tags --match 'v*.*.*' --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