I started to use the gitflow concept recently and I have a question about the release-* branches.
Whenever I make a new release(-branch), I perform some kind of a validation to verify that the essential parts of the software still function as expected. Every now and then, this reveals some bugs that need fixing before this code can be accepted as the new stable-release version.
If those bugs have a simple solution, I can make a single commit on that release-* branch, merge it to develop, and I'm done.
However, I'm not quite sure what I should do when the bug is a bit more complicated.
I can't use a feature-branch:
Those start from develop, which has moved on since the release was
initiated.
I don't think I should use a hotfix branch:
I need to start from a release-branch instead of master, and I don't want the changes to be merged into master either (at least not before the complete release was properly validated).
I don't think I should work directly on the release-branch:
This can generate broken code on the release-branch (code that is still under development is almost never good code)
Maybe I should use a releasefix-* branch or something similar...? Any ideas?
After a small discussing with my colleagues, I used a new branch-type: releasefix
Branches of this type should be
releasefix- prefixI used a new branch-type for it to make sure no release-fixes would accidentally be merged in the wrong branches.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With