- Open a repository that has a master branch
- Initialise repository for git flow
- For Production branch change "master" to "production"
- For Development branch change "develop" to "master"
- Click OK
- From Repository menu select "Start New Release" under "Git flow / Hg flow"
- Enter a release and click OK
EXPECT: Release branch created
ACTUAL: errorgit release start v1 fatal: Not a gitflow-enabled repo yet. Please run "git flow init" first. Completed with errors, see above
NOTE: the configuration file does not look right:
[gitflow "branch"] master = master develop = master
But the same error occurs after changing this to:
[gitflow "branch"] master = production develop = master
Initialising git flow with the defaults does work.
- has a derivative of
-
SRCTREE-1714 Document Git Flow initialisation
- Closed
Form Name |
---|
We now produce an error if the branch doesn't yet exist to say this process won't carry on. git-flow-init wrongly just carries on processing even under invalid circumstances. Git flow can't assume from what point to create a branch, the branch must already exist, hence why this problem is happening. Users should always create the branches they'll be using in git-flow before initialising git-flow. This is very important.