X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=GIT-VERSION-GEN;h=6ddf04d2161e5fd959c2fd69a7331520e8075d98;hb=bb034f839a396cf0660024a59bbff61f8ef0c5af;hp=03fb9d76aea22a7d7d7f5e2351fcf169ccd7987b;hpb=e5fc9a0aea2c3c49829b5cdf499339e5c759706b;p=git.git diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 03fb9d76a..6ddf04d21 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,7 +1,7 @@ #!/bin/sh GVF=GIT-VERSION-FILE -DEF_VER=v1.5.4.2.GIT +DEF_VER=v1.5.4.GIT LF=' ' @@ -16,7 +16,8 @@ elif test -d .git && case "$VN" in *$LF*) (exit 1) ;; v[0-9]*) - git diff-index --quiet HEAD || VN="$VN-dirty" ;; + test -z "$(git diff-index --name-only HEAD)" || + VN="$VN-dirty" ;; esac then VN=$(echo "$VN" | sed -e 's/-/./g');