diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-12-07 20:59:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-12-07 20:59:01 -0600 |
commit | c2cf6015aeb349c923d52f082179a842dec198c2 (patch) | |
tree | f0e4088cc704834f94a36d803515e0906c426df3 /switch_all_submodules_to_head_and_clean | |
parent | 95dd4739aa62188f6ffbfdf80b6537357559a7ec (diff) | |
download | scripts-c2cf6015aeb349c923d52f082179a842dec198c2.tar.gz scripts-c2cf6015aeb349c923d52f082179a842dec198c2.zip |
Remove ignore-submodules flag from git commands in order to support older GIT versions
Diffstat (limited to 'switch_all_submodules_to_head_and_clean')
-rwxr-xr-x | switch_all_submodules_to_head_and_clean | 4 |
1 files changed, 2 insertions, 2 deletions
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 |