[QUESTION] Why aren`t there hooks for the support branches?
pablolopezmestre opened this issue · 1 comments
pablolopezmestre commented
I tried to create a hook that disables this feature for team (we don't need that).
Something like this: "pre-flow-support-start"
#!/bin/sh
#
# Runs before git flow support start
#
# Positional arguments:
# $1 The version (including the version prefix)
# $2 The origin remote
# $3 The full branch name (including the support prefix)
# $4 The base from which this support is started
#
# The following variables are available as they are exported by git-flow:
#
# MASTER_BRANCH - The branch defined as Master
# DEVELOP_BRANCH - The branch defined as Develop
#
VERSION=$1
ORIGIN=$2
BRANCH=$3
BASE=$4
# Implement your script here.
echo "**************************************"
echo "*** ***"
echo "*** \033[31mGitFlow Support feature is\033[0m ***"
echo "*** \033[31mdisabled at this moment\033[0m ***"
echo "*** ***"
echo "**************************************"
exit 77 # permission denied
I know we simply couldn't use them, but I want to make sure that no one uses them.
ChrisJStone commented
I believe the support feature is still considered a WIP as such that may explain why your script did not work. I'd have to look at the actual script file to say for sure on that one. One way to make sure no one uses them is to delete git-flow-support from your bin folder.