make version tag prefix configurable so one can use it for github semver.org compliance
This commit is contained in:
parent
c51aedf8d0
commit
b22a076431
2 changed files with 4 additions and 2 deletions
|
@ -29,6 +29,7 @@ usage() {
|
|||
}
|
||||
|
||||
parse_args() {
|
||||
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
|
||||
VERSION="$1"
|
||||
if [ "$VERSION" = "" ]; then
|
||||
echo "Missing argument <version>."
|
||||
|
@ -82,7 +83,7 @@ cmd_finish() {
|
|||
# merge into master
|
||||
git checkout $MASTER_BRANCH
|
||||
git merge --no-ff $BRANCH
|
||||
git tag $VERSION
|
||||
git tag $VERSION_PREFIX$VERSION
|
||||
|
||||
# merge into develop
|
||||
git checkout $DEVELOP_BRANCH
|
||||
|
|
|
@ -17,8 +17,9 @@ usage() {
|
|||
}
|
||||
|
||||
parse_args() {
|
||||
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
|
||||
VERSION="$1"
|
||||
BASE="${2:-${VERSION}}"
|
||||
BASE="${2:-${VERSION_PREFIX}${VERSION}}"
|
||||
if [ "$VERSION" = "" ]; then
|
||||
echo "Missing argument <version>."
|
||||
usage
|
||||
|
|
Loading…
Reference in a new issue