summaryrefslogtreecommitdiff
path: root/GIT-VERSION-GEN
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-23 19:49:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-23 19:49:34 (GMT)
commit923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c (patch)
tree324f50710997113250f1c24abf043eceb2c2b883 /GIT-VERSION-GEN
parent0d2dd191cdfa3f1795c4df60a5cfb0f7e58c097a (diff)
parent31e0b2ca81ad985a8768c33c0aba547a51d05277 (diff)
downloadgit-923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c.zip
git-923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c.tar.gz
git-923d44aeb7cb6d21eeb459fdc1b58137e37c2b1c.tar.bz2
Sync with 1.5.4.3
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'GIT-VERSION-GEN')
-rwxr-xr-xGIT-VERSION-GEN3
1 files changed, 2 insertions, 1 deletions
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index 1ad324e..6ddf04d 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');