From: Johannes Berg Date: Mon, 8 Jun 2015 08:51:10 +0000 (+0200) Subject: iw: only use tags matching "v*" X-Git-Tag: v4.3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fadcfe93b1b00e69e3ec329ee07bc560d1758726;p=thirdparty%2Fiw.git iw: only use tags matching "v*" Some people/build systems may add additional tags, so use only tags matching "v*" for the version creation. Signed-off-by: Johannes Berg --- diff --git a/version.sh b/version.sh index 50c888b..3b7cafd 100755 --- a/version.sh +++ b/version.sh @@ -5,7 +5,7 @@ OUT="$1" if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then git update-index --refresh --unmerged > /dev/null - descr=$(git describe) + descr=$(git describe --match=v*) # on git builds check that the version number above # is correct...