]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
GIT-VERSION-GEN: Don't include output of git update-index.
authorAndre Noll <maan@systemlinux.org>
Wed, 4 Sep 2013 21:53:32 +0000 (21:53 +0000)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Sep 2013 22:22:45 +0000 (22:22 +0000)
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

index 32802232244a6a79258f2640e7e0f7e3ddd950a2..df7ed327cb3f9b8f93ec596e629da4c08346e69a 100755 (executable)
@@ -16,7 +16,7 @@ elif [[ -d .git || -f .git ]] &&
        case "$VN" in
        *$LF*) (exit 1) ;;
        v[0-9]*)
        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
                test -z "$(git diff-index --name-only HEAD --)" ||
                VN="$VN-dirty" ;;
        esac