Create a new maintenance branch
masterMaintenance branches are used to support older versions. These branches should be prefixed with b (e.g., b2.20).
Workflow for creating a maintenance branch
- Create a new branch in the
venusrepository prefixed withb(e.g.,git checkout -b b2.20). - Fetch all meta repositories using
make fetch-all. - Use
./reposto checkout the target version, create a new branch in the sub-repos, and push them with the new upstream. - Update the Venus configuration using
make update-repos.confto pin branches to the new maintenance version. - Manually update relevant configuration files (like
raspbianconfigs) and.gitlab-ci.ymlto ensure the build environment is correctly pinned. - Push the new branch to the remote.
# Example: Creating maintenance branch b2.20
git clone git@github.com:victronenergy/venus.git venus-b2.20
cd venus-b2.20
git checkout v2.20
git checkout -b b2.20
make fetch-all
./repos checkout v2.20
./repos checkout -b b2.20
./repos push --set-upstream origin b2.20
make update-repos.conf
git commit -a -m "pin dunfell branches to b2.20"
# (Manual steps for raspbian config and .gitlab-ci.yml follow)
git push --set-upstream origin b2.20