Fix switch_all_submodules_to_head_and_clean script

pull/1/head
Timothy Pearson 13 years ago
parent f9a97d74a5
commit a8b9bef5de

@ -8,6 +8,8 @@ fi
echo "Preparing $PWD for development use"
if [[ $1 == "" ]]; then
read -p "Enter your TDE GIT username []: " -e gituser
else
gituser=$1
fi
if [[ $gituser == "" ]]; then
@ -25,17 +27,17 @@ git reset --hard HEAD
git clean -dxf
if [[ -e .gitmodules ]]; then
if [[ $1 == "anonymous" ]]; then
if [[ $gituser == "anonymous" ]]; then
sed -i 's/system@//g' .gitmodules
else
sed -i "s/system@/$1@/g" .gitmodules
sed -i "s/system@/$gituser@/g" .gitmodules
fi
git submodule init
git submodule update
git submodule foreach "git checkout master"
git submodule foreach "git pull"
git submodule foreach "$THISSCRIPT $1"
git submodule foreach "$THISSCRIPT $gituser"
git checkout -- .gitmodules
fi

Loading…
Cancel
Save