commit 9e9d0f14f7e84c0e23ab707f9c5d49f400b66f84
parent 437248831b30dfcef80892abbf449a00fc6a1906
Author: Devan Carpenter <devan@taler.net>
Date: Tue, 9 Apr 2024 07:58:33 -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