From: Emilie Date: Thu, 2 Nov 2017 12:19:25 +0000 (+0100) Subject: [submodule] : init them X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8a4b1788ddc0bb8831fddb3c1b82a830ce34aa64;p=docker-django-scripts.git [submodule] : init them --- diff --git a/update_submodules.sh b/update_submodules.sh index ea1f599..a562491 100755 --- a/update_submodules.sh +++ b/update_submodules.sh @@ -17,7 +17,9 @@ then fi -#Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules +# checkout new submodule +git submodule update --init +# Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules git submodule sync # Checkout all submodules on right branches specified in .gitmodules, by default the branch is master git submodule foreach --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch-'$curr_branch' || echo master)'