From: Arnaud Giersch Date: Fri, 22 Mar 2019 09:42:42 +0000 (+0100) Subject: Use git diff instead of diff-index for setlocalversion. X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain Use git diff instead of diff-index for setlocalversion. Avoid false positives. --- diff --git a/setlocalversion b/setlocalversion index 221f868..30ad27c 100755 --- a/setlocalversion +++ b/setlocalversion @@ -14,7 +14,7 @@ compute_version() head=$(git rev-parse --verify --short HEAD) printf "~git-%s" "$head" # Check for uncommitted changes - if git diff-index --name-only HEAD | read dummy; then + if git diff --name-only HEAD | read dummy; then printf '%s' "-dirty" fi