fixed attach script

This commit is contained in:
WolverinDEV
2018-08-09 18:16:37 +00:00
parent ea219b0848
commit 8ba9aca900
9 changed files with 17 additions and 9 deletions
+9 -1
View File
@@ -1,3 +1,11 @@
#!/bin/bash
git submodule foreach -q --recursive 'echo "Updating $name"; git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master); git pull origin $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'
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}'