Testing / Legacy Branch Support

Announcements from the Pi-Star Admin Team
Post Reply
User avatar
MW0MWZ
Site Admin
Posts: 1505
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Testing / Legacy Branch Support

Post by MW0MWZ »

As we move toward a world of up-to-date firmwares, and up to date DV related binaries, there is clearly a need for some of you to stay put on the older releases - maybe your boards just won't play nice, maybe they are manufacturer locked etc.

To help support you, we now have a "legacy" branch of binaries (and matching 1.5.2 firmware).

You can swap to the legacy branch (and reflash your Hotspot Hat if required).
To swap you need to login over SSH and run some commands:

Code: Select all

pi-star@pi-star(ro):~$ rpi-rw
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git fetch origin
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git checkout legacy
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git checkout -t origin/legacy

For the mavericks among you who'd like to live on the bleeding edge, I will also keep the builds in the "testing" branch, these will be right up to date, within a day or so of the work going on in the source repos, I may even fully automate these deployments to testing later.

Code: Select all

pi-star@pi-star(ro):~$ rpi-rw
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git fetch origin
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git checkout testing
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git checkout -t origin/testing
Finally to return to the normal branch you can just

Code: Select all

pi-star@pi-star(ro):~$ rpi-rw
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git fetch origin
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git checkout master
pi-star@pi-star(rw):~$ sudo git --work-tree=/usr/local/bin/ --git-dir=/usr/local/bin/.git checkout -t origin/master
Once you swap branches, do a normal pistar-update (either on the CLI or on the Dashboard to make sure you're all up-to-date for your branch.
You will see that the update process now shows the branch you are tracking:

Code: Select all

Updating Pi-Star Binaries...
No updates for /usr/local/sbin (Branch: master) available
Done
Finally if you swap about a lot, you may see the message:

Code: Select all

fatal: A branch named 'master' already exists.
This can be safely ignored; it just means you have used this branch before (you may see this when moving back to "master" from "testing" for example.
Andy

73 de MW0MWZ
http://pistar.uk
Post Reply