scripts/getver.sh: try to get branch/upstream automatically
authorJonas Gorski <jonas.gorski@gmail.com>
Sat, 25 Jun 2016 13:58:35 +0000 (15:58 +0200)
committerJonas Gorski <jonas.gorski@gmail.com>
Wed, 13 Jul 2016 14:55:32 +0000 (16:55 +0200)
commit4eb5aad667bc838b8ebb80c9b970d6bb2f6c013d
treed6af73aa941a5a83357f0725de24e10730eab208
parentefa1960abb390d696704d029507dff671cc271fd
scripts/getver.sh: try to get branch/upstream automatically

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 <jonas.gorski@gmail.com>
scripts/getver.sh