- further fixups to deal with nested submodules correctly
This commit is contained in:
parent
cbad36a30b
commit
bc0042a39c
8
clone.sh
8
clone.sh
|
@ -23,16 +23,18 @@ for component in $REPOS
|
||||||
do
|
do
|
||||||
if [ ! -d $component ]; then
|
if [ ! -d $component ]; then
|
||||||
echo "# cloning $component"
|
echo "# cloning $component"
|
||||||
sayAndDo git clone --recursive git@github.com:RangeNetworks/$component.git
|
sayAndDo git clone git@github.com:RangeNetworks/$component.git
|
||||||
cd $component
|
cd $component
|
||||||
for remote in `git branch -r | grep -v master `
|
for remote in `git branch -r | grep -v master `
|
||||||
do
|
do
|
||||||
sayAndDo git checkout --track $remote
|
sayAndDo git checkout --track $remote
|
||||||
done
|
done
|
||||||
sayAndDo git checkout master
|
sayAndDo git checkout master
|
||||||
sayAndDo git submodule init
|
sayAndDo git submodule update --init --recursive --remote
|
||||||
sayAndDo git submodule update --init --recursive
|
# sayAndDo doesn't like this string at all, can't seem to get the quoting right
|
||||||
|
git submodule foreach 'git checkout `git config -f $toplevel/.gitmodules submodule.$name.branch`'
|
||||||
cd ..
|
cd ..
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue