Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Master Repo Version out of Sync
« previous
next »
Print
Pages: [
1
]
Author
Topic: Master Repo Version out of Sync (Read 4928 times)
NOYB
Jr. Member
Posts: 75
Karma: 6
Master Repo Version out of Sync
«
on:
February 11, 2018, 11:59:39 pm »
How do I get my master repo to upgrade to 18.7.a? It's stuck on 18.1.b.
When I check for upgrade it shows new version opnsense-devel 18.7.a and upgrade to that as expected. But if I do a make upgrade from the master repo it reverts to reporting version 18.1.b.
Don't think there would be any code difference. Just version reporting and always thinking there is an upgrade available.
Firmware release type is set to development.
Thanks
Logged
NOYB
Jr. Member
Posts: 75
Karma: 6
Re: Master Repo Version out of Sync
«
Reply #1 on:
February 12, 2018, 12:42:33 am »
Think I may have figure it out. Or at least go it to work.
I wasn't pushing the tags to the repo.
If there is other info techniques something I'm missing etc. I welcome your enlightenment.
Thanks
Logged
franco
Administrator
Hero Member
Posts: 17663
Karma: 1611
Re: Master Repo Version out of Sync
«
Reply #2 on:
February 12, 2018, 06:05:10 pm »
Yes, pull automatically fetches tags, but push doesn't include tags by default.
You can add a separate origin to your /usr/core repository, e.g. "upstream" and then do "git fetch upstream" to slurp all tags asynchronously.
Cheers,
Franco
Logged
NOYB
Jr. Member
Posts: 75
Karma: 6
Re: Master Repo Version out of Sync
«
Reply #3 on:
February 12, 2018, 08:40:40 pm »
Thanks for the confirmation.
My work flow is something like this.
Pull from github/opnsense/core into local repo on pc.
Apply my customizations.
Push to repo on opnsense machine /usr/core. (need to include tags)
make upgrade
Logged
franco
Administrator
Hero Member
Posts: 17663
Karma: 1611
Re: Master Repo Version out of Sync
«
Reply #4 on:
February 12, 2018, 10:46:19 pm »
Looks sensible. Use push --tags to the opnsense machine or a simple pull from the opnsense machine reversing the order. Both should render the tags on the opnsense machine.
I use the pull variant from a local repo because "make upgrade" needs to be run anyway. Mainly in conjunction with "git fetch && git reset --hard origin/branch_with_modifications" to always sync to the correct commit hash of the local repo instead of ending up with git merges / code clashes.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Development and Code Review
(Moderator:
fabian
) »
Master Repo Version out of Sync