22 lines
531 B
Bash
Executable File
22 lines
531 B
Bash
Executable File
#!/bin/bash
|
|
|
|
git submodule foreach -q --recursive '
|
|
echo "Updating $name";
|
|
BRANCH=$(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)
|
|
if [ -z ${BRANCH} ]; then
|
|
BRANCH="master"
|
|
fi
|
|
git checkout ${BRANCH};
|
|
echo "git pull origin ${BRANCH}"
|
|
git pull origin ${BRANCH}'
|
|
|
|
git submodule foreach -q --recursive '
|
|
echo "Updating $name";
|
|
CHECKOUT=$(git config -f $toplevel/.gitmodules submodule.$name.checkout)
|
|
if [ ! -z ${CHECKOUT} ]; then
|
|
git checkout ${CHECKOUT};
|
|
echo "Checking out ${CHECKOUT} for $name"
|
|
fi
|
|
'
|
|
|