From b0a915240f92352cf9675146940d045f76ee7746 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 7 Dec 2012 20:59:01 -0600 Subject: Remove ignore-submodules flag from git commands in order to support older GIT versions (cherry picked from commit 3f91377dc9f4caf3269679045215de90c8491b77) --- switch_all_submodules_to_head_and_clean | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'switch_all_submodules_to_head_and_clean') diff --git a/switch_all_submodules_to_head_and_clean b/switch_all_submodules_to_head_and_clean index 0171537..6313812 100755 --- a/switch_all_submodules_to_head_and_clean +++ b/switch_all_submodules_to_head_and_clean @@ -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 -- cgit v1.2.1