Tito tries to be clever and set versions in our pom.xml. We don't want that because not all our pom's are referenced in the base pom and stuff breaks.
@@ -24,6 +24,9 @@ git checkout -b $RPM_BRANCH $VERSION
# Tito expects spec file to be on root
git mv $SPECFILE .
+# Hide pom.xml to avoid tito doing anything to our pom.xml files
+mv pom.xml pom.xml.hide
+
# Run tito to update spec file and tag
tito init
tito tag --use-version=$VERSION --no-auto-changelog
@@ -31,5 +34,6 @@ tito tag --use-version=$VERSION --no-auto-changelog
# Push changes and tag to branc
git push -u origin --follow-tags $RPM_BRANCH
+git reset --hard HEAD
git checkout $CURRENT_BRANCH
