]> git.parisson.com Git - docker-django-scripts.git/commitdiff
[submodule] : init them
authorEmilie <zawadzki@ircam.fr>
Thu, 2 Nov 2017 12:19:25 +0000 (13:19 +0100)
committerEmilie <zawadzki@ircam.fr>
Thu, 2 Nov 2017 12:19:25 +0000 (13:19 +0100)
update_submodules.sh

index ea1f599518461ea96599a9d628984eeea8bb46b7..a5624916850de933a3eec3943c385037c5bfb3cc 100755 (executable)
@@ -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)'