Skip to content

Commit

Permalink
make version tag prefix configurable so one can use it for github sem…
Browse files Browse the repository at this point in the history
…ver.org compliance
  • Loading branch information
hollow authored and nvie committed Jan 27, 2010
1 parent c51aedf commit b22a076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion git-flow-release
Expand Up @@ -29,6 +29,7 @@ usage() {
}

parse_args() {
VERSION_PREFIX=$(git config --get gitflow.prefix.versiontag)
VERSION="$1"
if [ "$VERSION" = "" ]; then
echo "Missing argument <version>."
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion git-flow-support
Expand Up @@ -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
Expand Down

0 comments on commit b22a076

Please sign in to comment.