From 798f1124984b1707f71a6e48ca8437d25cad0624 Mon Sep 17 00:00:00 2001 From: Amine Bou Date: Thu, 24 May 2018 22:36:20 +0200 Subject: [PATCH] Added the ability to force push and force tag creation. --- version.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/version.sh b/version.sh index 843bf20..f8413eb 100755 --- a/version.sh +++ b/version.sh @@ -1,5 +1,5 @@ #!/bin/bash - +# You can pass --force as first parameter to force push and tag creation. BASE_VERSION="v1.6" TODAYS_VERSION="1" @@ -7,8 +7,8 @@ VERSION="${BASE_VERSION}.$(date '+%y%m%j')$TODAYS_VERSION" echo "Creating tag $VERSION" -git tag $VERSION +git tag $VERSION $1 echo "Pushing tag" -git push origin $VERSION +git push origin $VERSION $1