scripts/getver.sh: treat all commits as local if can't find upstream
authorRafał Miłecki <rafal@milecki.pl>
Thu, 17 Nov 2016 06:25:21 +0000 (07:25 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 21 Nov 2016 13:36:04 +0000 (14:36 +0100)
commitbf3d92f0cdcea5cd9ec30f54d6e4d350cda1bb41
tree43daa91665d9ee690d275036bac62da4e998cf32
parenta0ea22ac430f91ab045431a79b2e2161e66cd56a
scripts/getver.sh: treat all commits as local if can't find upstream

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 <rafal@milecki.pl>
Acked-by: John Crispin < john@phrozen.org>
scripts/getver.sh