From: Andre Noll Date: Wed, 4 Sep 2013 21:53:32 +0000 (+0000) Subject: GIT-VERSION-GEN: Don't include output of git update-index. X-Git-Tag: v0.5.1~12^2~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=d6cf71afbc470b86d51645750b8214791ad9a4c2;p=paraslash.git GIT-VERSION-GEN: Don't include output of git update-index. GIT-VERSION-GEN calls git update-index which might write something like "configure.ac: Needs update" to stdout. We don't want this text to be part of the version string, so make sure we discard the output of git update-index. --- diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 32802232..df7ed327 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -16,7 +16,7 @@ elif [[ -d .git || -f .git ]] && case "$VN" in *$LF*) (exit 1) ;; v[0-9]*) - git update-index -q --refresh + git update-index -q --refresh &>/dev/null test -z "$(git diff-index --name-only HEAD --)" || VN="$VN-dirty" ;; esac