mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
9f584e8114
commit
60322b4675
@ -15,8 +15,8 @@ else
|
|||||||
git_version=`git describe --abbrev=4 HEAD 2>/dev/null`
|
git_version=`git describe --abbrev=4 HEAD 2>/dev/null`
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
# Is the working tree dirty?
|
# Is the working tree dirty?
|
||||||
if git diff-index --quiet --cached HEAD --ignore-submodules && \
|
if git diff-index --quiet --cached HEAD && \
|
||||||
git diff-files --quiet --ignore-submodules ; then
|
git diff-files --quiet ; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
git_version="$git_version-dirty"
|
git_version="$git_version-dirty"
|
||||||
|
Loading…
Reference in New Issue
Block a user