-
-
Notifications
You must be signed in to change notification settings - Fork 188
Description
The goal hotfix-finish runs the post hofix goals on the wrong branch, if the option skipReleaseMergeProdBranch is set to true.
After some digging around I noticed that in GitFlowHotFixFinishMojo on line 261 there is the check if (skipMergeProdBranch && (supportBranchName == null)), if both conditions are true then it switches to the production branch. However, on line 267 it checks if it should run the post hotfix goals, which is just below the mentioned check.
If my understanding is correct, the finish goals runs the post hotfix goals on the hotfix only if there is a support branch or if skipMergeProdBranch is false. I expected that the post goals would execute from:
- the support branch after merging, if there is a support branch
- or the production branch after merging, if the merge is not skipped
- or the hotfix branch, if the option
skipMergeProdBranchistrue.
I just want to check if my understanding is correct or that I'm missing something here, before I create a pull-request (the change is rather simple move switching to the production after running the post hotfix goals).
I ran into the problem after moving to your gitflow plugin from the Atlassian one (jgitflow), which is no longer maintained.