How do I get the 18.06.1 of the openwrt branch?
Do I get it if I
git clone https://github.com/openwrt/openwrt.git
cd openwrt/
(git fetch --tags)
git checkout v18.06.1
?
Or
git clone -b openwrt-18.06
git checkout v18.06.1
Yes.
Just like the three examples above (about various 17.01 tags) show.
Below is example about v18.06.1 for you.
(just for fun, as there is no new information compared to the previous examples except the current tag).
perus@ub1804:/Openwrt$ cd /tmp
perus@ub1804:/tmp$ git clone https://github.com/openwrt/openwrt.git
Cloning into 'openwrt'...
remote: Counting objects: 437912, done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 437912 (delta 36), reused 19 (delta 9), pack-reused 437815
Receiving objects: 100% (437912/437912), 151.66 MiB | 8.19 MiB/s, done.
Resolving deltas: 100% (296538/296538), done.
perus@ub1804:/tmp$ cd openwrt/
perus@ub1804:/tmp/openwrt$ git fetch --tags
perus@ub1804:/tmp/openwrt$ git tag -l
reboot
v17.01.0
v17.01.0-rc1
v17.01.0-rc2
v17.01.1
v17.01.2
v17.01.3
v17.01.4
v17.01.5
v17.01.6
v18.06.0
v18.06.0-rc1
v18.06.0-rc2
v18.06.1
perus@ub1804:/tmp/openwrt$ git checkout v18.06.1
Note: checking out 'v18.06.1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 70255e3d62 OpenWrt v18.06.1: adjust config defaults
perus@ub1804:/tmp/openwrt$ git log --oneline | head -n 3
70255e3d62 OpenWrt v18.06.1: adjust config defaults
5eb055306f rpcd: update to latest git HEAD
e11df1eac6 openssl: update to version 1.0.2p
I am not very sure if we are on the same track. isn't it that your are constantly driving on the master branch?
My question - to be more precisely- was in regard to the openwrt-18.06 branch.
You do neither clone the openwrt-18.06 branch nor checkout this one.
My question was:
How do I get the version 18.06.1 of the openwrt-18.06 branch? If this is possible at all.
You mentioned:
The structure of git is too complex for me to try to explain, but suffice to say you don't need to check out a particular branch to get the 18.06.1 tag. All you need to do is check out the master and select the tag using git checkout <tag>.
Which is good for me, since I want to build the latest greatest master version with ath79 support.
And I was just wondering what I could do wrong to checkout the "other" branch or what someone could do if someone wanted to build a specific version of the openwrt-18.06 branch - if this is possible at all.
Just theoretically and expandable. But still interesting since I do usually have less touch points with git.
ath79 does not exist in the openwrt-18.06 branch, nor any of the tagged 18.06.x releases - you can only use master for this (and most of the rather important developments happen long after 18.06 was branched off, so you really wouldn't want to use it in 18.06 anyways, even if it would exist).
yes... and expandable
i was just wondering, since in the download and release section there is " Current Stable Release - OpenWrt 18.06.1"
Is this all the master branch being compiled for download? Never the "openwrt-18.06" branch?
Current stable release is always compiled from the stable branch(es), currently 18.06 (and 17.01)
Current stable release is never compiled from master.
Openwrt follows this kind of branch strategy:
all development happens in master. It progresses on, but no releases are made of it.
before major releases, a release branch is branched off from master. This branch will get separate fix commits and releases are made of that. No new features (like ath79) are normally added to the release branches after the branching.
In the picture below, you can see 17.01 branch and 18.06 branch with the releases made from them.
releases are made from individual commits in release branch. 18.06.0 would be the first balloon on that branch, 18.06.1 the next one etc. (intermediate commits between releases are omitted from picture)
So there can be no "18.06.1 of the openwrt (master) branch".
Correct, neither 18.06.1 nor the openwrt-18.06 branch contain the ath79 target at all (and even if they did, you really wouldn't want to use it, as crucial bugfixes only happened long after branching off 18.06).
You do not have a clean local repo, but instead there are local edits to some files. You need to stash them first, or otherwise cleanup the repo first.
As the version r7676-cddd7b4c77 is included by the "release commit" to the source code, the hash always shows the previous commit, the last real source code change.
Release commit: OpenWrt v18.06.2: adjust config defaults