diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-02-23 11:49:34 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-23 11:49:34 -0800 |
commit | 923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c (patch) | |
tree | 324f50710997113250f1c24abf043eceb2c2b883 /GIT-VERSION-GEN | |
parent | 0d2dd191cdfa3f1795c4df60a5cfb0f7e58c097a (diff) | |
parent | 31e0b2ca81ad985a8768c33c0aba547a51d05277 (diff) | |
download | git-923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c.tar.gz |
Sync with 1.5.4.3
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'GIT-VERSION-GEN')
-rwxr-xr-x | GIT-VERSION-GEN | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 1ad324e236..6ddf04d216 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -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'); |