Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

[QUESTION] Why aren`t there hooks for the support branches? #445

Open
pablolopezmestre opened this issue Oct 15, 2020 · 1 comment
Open

Comments

@pablolopezmestre
Copy link

pablolopezmestre commented Oct 15, 2020

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants