From: Andrew Deason Date: Sat, 8 Jan 2011 01:48:18 +0000 (-0500) Subject: git-version: Do not specify --ignore-submodules X-Git-Tag: openafs-devel-1_7_1~1051 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=60322b46755d0bfedc239e3e9287f6ae625cd836 git-version: Do not specify --ignore-submodules Only new git versions reognize the --ignore-submodules option to diff-index and diff-files. Do not pass this, to make git-version more likely to work across different versions, as we don't have any submodules in the tree anyway. Change-Id: Ic9dbd9ec5f332f36cec291fc3d324db14615f831 Reviewed-on: http://gerrit.openafs.org/3627 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/build-tools/git-version b/build-tools/git-version index 6bc9a50..ff55b4a 100755 --- a/build-tools/git-version +++ b/build-tools/git-version @@ -15,8 +15,8 @@ else git_version=`git describe --abbrev=4 HEAD 2>/dev/null` if [ $? = 0 ]; then # Is the working tree dirty? - if git diff-index --quiet --cached HEAD --ignore-submodules && \ - git diff-files --quiet --ignore-submodules ; then + if git diff-index --quiet --cached HEAD && \ + git diff-files --quiet ; then : else git_version="$git_version-dirty"