diff --git a/.gitmodules b/.gitmodules index 956fea5..eef3643 100644 --- a/.gitmodules +++ b/.gitmodules @@ -47,7 +47,7 @@ [submodule "libraries/mysqlconnector"] path = libraries/mysqlconnector url = https://github.com/mysql/mysql-connector-cpp.git - branch = 8.0.12 + checkout = 8.0.12 [submodule "libraries/boringssl"] path = libraries/boringssl url = https://boringssl.googlesource.com/boringssl diff --git a/attach_modules.sh b/attach_modules.sh index b4826fd..b11accc 100755 --- a/attach_modules.sh +++ b/attach_modules.sh @@ -9,3 +9,13 @@ 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 +' +