X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fsetlocalversion;h=82e4993f0a7368797989b2acd169fe203766fb7a;hb=e620c4940002348417e8d317d65bc7b152646493;hp=b7bc0f5b64f65dfb285bdd9489b7ba0b2c3819a8;hpb=29b0c89953fee8597b4a9cbdd763c294ae0eb4c7;p=linux-2.6 diff --git a/scripts/setlocalversion b/scripts/setlocalversion index b7bc0f5b64..82e4993f0a 100644 --- a/scripts/setlocalversion +++ b/scripts/setlocalversion @@ -16,7 +16,7 @@ if head=`git rev-parse --verify HEAD 2>/dev/null`; then fi # Are there uncommitted changes? - if git diff-files | read dummy; then + if git diff-index HEAD | read dummy; then printf '%s' -dirty fi fi