]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
git-version: Do not specify --ignore-submodules
authorAndrew Deason <adeason@sinenomine.net>
Sat, 8 Jan 2011 01:48:18 +0000 (20:48 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 3 Feb 2011 11:44:57 +0000 (03:44 -0800)
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.

Reviewed-on: http://gerrit.openafs.org/3627
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 60322b46755d0bfedc239e3e9287f6ae625cd836)

Change-Id: Iae527081b431863fa1eae418b8468741f75f3f2e
Reviewed-on: http://gerrit.openafs.org/3817
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
build-tools/git-version

index 6bc9a50c1bbf9f450abf653f7c854c770700e51b..ff55b4a403420cbe7792f6498c3073d1aee3d3a0 100755 (executable)
@@ -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"