Remove ignore-submodules flag from git commands in order to support older GIT versions

pull/1/head
Timothy Pearson 12 years ago
parent 95dd4739aa
commit c2cf6015ae

@ -35,12 +35,12 @@ if [[ ! -e "$THISSCRIPT" ]]; then
exit 1
fi
if [[ ! -z "`git status --porcelain --ignore-submodules`" ]]; then
if [[ ! -z "`git status --porcelain`" ]]; then
git reset --hard HEAD
git clean -dxff
fi
git pull
if [[ ! -z "`git status --porcelain --ignore-submodules`" ]]; then
if [[ ! -z "`git status --porcelain`" ]]; then
git reset --hard HEAD
git clean -dxff
fi

@ -24,7 +24,7 @@ touch /var/lock/update-tde-git-submodules
PARENTDIR=$PWD
echo "Working in $PARENTDIR"
git pull
if [[ ! -z "`git status --porcelain --ignore-submodules`" ]]; then
if [[ ! -z "`git status --porcelain`" ]]; then
git reset --hard HEAD
git clean -dxff
fi
@ -44,7 +44,7 @@ do
git submodule update
fi
cd $PARENTDIR/$DIR2UPDATE
if [[ ! -z "`git status --porcelain --ignore-submodules`" ]]; then
if [[ ! -z "`git status --porcelain`" ]]; then
git reset --hard HEAD
git clean -dxff
fi

Loading…
Cancel
Save