<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/scripts/getver.sh, branch v21.02.1</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.1'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2021-02-21T17:42:38Z</updated>
<entry>
<title>scripts: getver.sh: fix version based on stable branch</title>
<updated>2021-02-21T17:42:38Z</updated>
<author>
<name>Baptiste Jonglez</name>
</author>
<published>2021-02-21T17:42:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=cb5c93f12ad45f646089be6473c1c70005800020'/>
<id>urn:sha1:cb5c93f12ad45f646089be6473c1c70005800020</id>
<content type='text'>
When building from a local branch based off the "openwrt-21.02" branch,
version computation is wrong, because the number of local commits is
computed against master.  As a result, it wrongly counts *all* commits
since the beginning of the openwrt-21.02 branch as local commits.

The fix is to compare to the openwrt-21.02 branch instead, which gives the
expected result.

A similar change had been applied to the openwrt-19.07 branch:
891022918d55 ("scripts: getver.sh: fix version based on stable branch")

Signed-off-by: Baptiste Jonglez &lt;git@bitsofnetworks.org&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: silence rev-list errors</title>
<updated>2020-11-02T07:39:49Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-03-03T11:47:07Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=f52aee0455f6ce77b16a78ddf17f1ef49ddc2380'/>
<id>urn:sha1:f52aee0455f6ce77b16a78ddf17f1ef49ddc2380</id>
<content type='text'>
Shallow copies are quite common on CI platforms nowadays, making REBOOT
tag unavailable, thus producing following confusing errors in the build
logs:

 fatal: Invalid revision range ee53a240ac902dc83209008a2671e7fdcf55957a..HEAD
 fatal: Invalid revision range ee53a240ac902dc83209008a2671e7fdcf55957a..0493d57e04774d47921a7d2014b567455d5dc16b

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: append short git hash based on upstream commit</title>
<updated>2017-02-01T16:48:45Z</updated>
<author>
<name>Magnus Kroken</name>
</author>
<published>2017-01-14T21:34:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=289f2a8ce36caff6c9ec65585b397f64ffd0f244'/>
<id>urn:sha1:289f2a8ce36caff6c9ec65585b397f64ffd0f244</id>
<content type='text'>
The short git hash suffix printed by getver.sh is taken from the
latest local commit, change this to use the hash from latest
upstream commit if available. This is considered the intended
behavior based on commit message a642a11faca87e2a7bddc1fadb54253e2fc26e84,
introducing getver.sh.

Signed-off-by: Magnus Kroken &lt;mkroken@gmail.com&gt;
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>scripts: getver.sh: append Git short hash to revision</title>
<updated>2016-12-02T15:38:55Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2016-12-02T11:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=a642a11faca87e2a7bddc1fadb54253e2fc26e84'/>
<id>urn:sha1:a642a11faca87e2a7bddc1fadb54253e2fc26e84</id>
<content type='text'>
Change getver.sh to append a short Git commit hash to the end of the artifical
revision number. This way we still have order- and comparable commit numbers
but also a direct relation to the Git commit.

The new output format will look like "r2400+2-882472e" for dirty trees or like
"r2402-882472e" for clean ones.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: treat all commits as local if can't find upstream</title>
<updated>2016-11-21T13:36:04Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2016-11-17T06:25:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=bf3d92f0cdcea5cd9ec30f54d6e4d350cda1bb41'/>
<id>urn:sha1:bf3d92f0cdcea5cd9ec30f54d6e4d350cda1bb41</id>
<content type='text'>
If something goes wrong and script can't find upstream revision it will
return something like:
r2220
which looks like a valid upstream revision 2220. We cant' distinguish it
from e.g. 2200 upstream commits and 20 local ones.

The new format still provides revision number but also points clearly
that is may be not the upstream one:
r0+2220

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
Acked-by: John Crispin &lt; john@phrozen.org&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: fix older git versions from printing stuff to stdout</title>
<updated>2016-07-16T18:50:56Z</updated>
<author>
<name>Jonas Gorski</name>
</author>
<published>2016-07-16T14:57:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=efdd3bf5fbab94b3f84e8a285e83ef36e39b3e8b'/>
<id>urn:sha1:efdd3bf5fbab94b3f84e8a285e83ef36e39b3e8b</id>
<content type='text'>
Older git versions seem output the original argument to stdout if there
is no upstream, presumably because they try to do things with it
internally. This can be prevented by passing --verify to it, which
should be safe on newer git versions.

Signed-off-by: Jonas Gorski &lt;jonas.gorski@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: stop relying on the reboot tag</title>
<updated>2016-07-14T11:37:58Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-07-14T11:30:54Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=7ed215437c784eb466302a5c01a4ee2fff9eac2d'/>
<id>urn:sha1:7ed215437c784eb466302a5c01a4ee2fff9eac2d</id>
<content type='text'>
It may not be present when cloning a staging tree or another fork

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: fix one more wc -l call</title>
<updated>2016-07-13T14:56:41Z</updated>
<author>
<name>Jonas Gorski</name>
</author>
<published>2016-07-13T14:56:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=6f86d2e2ab25f7fb8e915556d025f007f41cece6'/>
<id>urn:sha1:6f86d2e2ab25f7fb8e915556d025f007f41cece6</id>
<content type='text'>
The revision to hash conversion was missed when fixing up the script.

Signed-off-by: Jonas Gorski &lt;jonas.gorski@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: try to get branch/upstream automatically</title>
<updated>2016-07-13T14:55:32Z</updated>
<author>
<name>Jonas Gorski</name>
</author>
<published>2016-06-25T13:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=4eb5aad667bc838b8ebb80c9b970d6bb2f6c013d'/>
<id>urn:sha1:4eb5aad667bc838b8ebb80c9b970d6bb2f6c013d</id>
<content type='text'>
Instead of assuming master is the current branch and origin the right
upstream, try to get both dynamically. If the current branch is not
tracking any upstream, use the origin of the master branch.

Signed-off-by: Jonas Gorski &lt;jonas.gorski@gmail.com&gt;
</content>
</entry>
<entry>
<title>scripts/getver.sh: fix revision number on BSD/MacOS</title>
<updated>2016-07-09T18:02:21Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-07-09T18:00:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c19381dfca92a2eb80d35f294515a777da2cb7be'/>
<id>urn:sha1:c19381dfca92a2eb80d35f294515a777da2cb7be</id>
<content type='text'>
Strip leading whitespace from wc -l output

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
</feed>
