summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-10-02 17:04:39 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2017-10-02 17:04:39 +0200
commite72b76bad0f09131bff5147bf4962e03f1688a73 (patch)
tree205ee5398ae6c06d4943fc002f68afaad6484104
parentf7545172a59fb08ea39d1342ebfd1f0ebf1b6a52 (diff)
Remove release suffix from release tag
-rwxr-xr-xdist/release-vespa-rpm.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dist/release-vespa-rpm.sh b/dist/release-vespa-rpm.sh
index ba9195dff05..eaf91468c38 100755
--- a/dist/release-vespa-rpm.sh
+++ b/dist/release-vespa-rpm.sh
@@ -34,6 +34,11 @@ mv pom.xml pom.xml.hide
# Run tito to update spec file and tag
tito tag --use-version=$VERSION --no-auto-changelog
+# Remove '-1' suffix from tag generated by tito
+readonly TITO_GIT_TAG="vespa-${VERSION}-1"
+git tag "vespa-${VERSION}" ${TITO_GIT_TAG}
+git tag -d ${TITO_GIT_TAG}
+
# Push changes and tag to branc
git push -u origin --follow-tags $RPM_BRANCH