Using Gerrit it is easy to accidentally merge unstable code from the develop branch into the stable branch:
$ git checkout develop
$ commit
$ git push origin HEAD:refs/for/stable
In Gerrit it isn't very clear that the proposed change comes from the develop branch and is to be merged into the stable branch. Is there a way to prevent this merge from happening, either in git or in Gerrit?
Update: For now we use a custom command to push to gerrit which finds the last branch in origin it was based on and only allow pushing to that branch.
Currently there are no options in software which would prevent You from making this kind of mistake.
There are, however, a few things You could do:
Would You share the custom command You use to push to gerrit, please?
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