X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Fgetver.sh;h=9175f411db8345ab420fdb1edcaf0d20f858f12f;hb=289f2a8ce36caff6c9ec65585b397f64ffd0f244;hp=ecf048f4c1c88b308295e5d9d79e34bc2f70a12e;hpb=70973dd30d29c9d7e4402578da1d36e05e3d142d;p=lede-git%2F.git diff --git a/scripts/getver.sh b/scripts/getver.sh index ecf048f4c1..9175f411db 100755 --- a/scripts/getver.sh +++ b/scripts/getver.sh @@ -40,7 +40,8 @@ try_git() { REV="${UPSTREAM_REV}+$((REV - UPSTREAM_REV))" fi - REV="${REV:+r$REV-$(git log --format="%h" -1)}" + REV="${REV:+r$REV-$(git log -n 1 --format="%h" $UPSTREAM_BASE)}" + ;; esac