Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds filter hook version in for release start

Also adds sample script.

Signed-off-by: Peter van der Does <peter@avirtualhome.com>
  • Loading branch information...
commit 104af0331971045836a662685be8030083ccbaac 1 parent 22ccaed
@petervanderdoes authored
Showing with 18 additions and 0 deletions.
  1. +4 −0 git-flow-release
  2. +14 −0 hooks/filter-flow-release-start-version
View
4 git-flow-release
@@ -153,6 +153,10 @@ cmd_start() {
DEFINE_boolean fetch false "fetch from $ORIGIN before performing finish" F
parse_args "$@"
BASE=${2:-$DEVELOP_BRANCH}
+ # Run filter on the version
+ VERSION=`run_filter_hook release-start-version $VERSION`
+ # As VERSION might have changed reset BRANCH with new VERSION
+ BRANCH=$PREFIX$VERSION
require_version_arg
require_base_is_on_develop
require_no_existing_release_branches
View
14 hooks/filter-flow-release-start-version
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Runs during git flow release start
+#
+# Positional arguments:
+# $1 Version
+#
+VERSION=$1
+
+# Implement your script here.
+
+# Return the VERSION
+echo ${VERSION}
+exit 0
Please sign in to comment.
Something went wrong with that request. Please try again.