From d6cf71afbc470b86d51645750b8214791ad9a4c2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 4 Sep 2013 21:53:32 +0000 Subject: [PATCH] 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. --- GIT-VERSION-GEN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5