X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=GIT-VERSION-GEN;h=5e8077ebf47ebf749adbc63ee550028fb74d5378;hb=9db41eba4259126dbe1c68e2207d342d11f14745;hp=e5b1111a37fdd25da1b3bb3c0076313c4daeacff;hpb=f3bd6ab7ea7b35ca5f26f106eb00a00f257716d7;p=git.git diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index e5b1111a3..5e8077ebf 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.7.1.rc1.GIT +DEF_VER=v1.7.1.4 LF=' ' @@ -12,7 +12,7 @@ if test -f version then VN=$(cat version) || VN="$DEF_VER" elif test -d .git -o -f .git && - VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && + VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/dev/null) && case "$VN" in *$LF*) (exit 1) ;; v[0-9]*)