Marc's guide to back porting a fix to an existing distribution

Overall Process

  1. Identify the long lived branch for the module version for the distribution
  2. Issue a pull request to that branch for the back ported change
  3. The pull review may be reviewed
  4. Merge the pull request
  5. When all of the fixes have been back ported, release a patch version of the module

Identifying the long lived branch for the release

Create a pull request for the fix

  • Make sure you have the most up to date version of the long lived release branch for the targeted version
  • Create a new branch for the back port based upon the long lived branch for the targeted version, e.g. to back port MODPATRON-59 to version 4.4.x issue the following git checkout -b MODPATRON-59-back-port-to-4-4-0 b4.4 
  • Cherry pick the commits from the pull request for the fix (excluding the merges of master unless they are needed)
  • Push the branch and issue a pull request against the long lived release branch e.g. for MODPATRON-59-back-port-to-4-4-0  the base branch should b4.4
  • Check that the changes in this pull request are similar to those made for the original fix (unless there are good reasons where that cannot be the case)