From dcebfc77de8884440e7812b9468cfaa493541d77 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Mar 2011 19:45:59 +0100 Subject: Fix submodule handling --- bin/ct | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/ct b/bin/ct index c4475ed..4be6702 100755 --- a/bin/ct +++ b/bin/ct @@ -231,6 +231,7 @@ function vcs_add ( git clone $(list_get_uri ${1}) ${1} vcs_setup ${1} git config push.default matching + vcs_update_submodules ${1} } else { die "${1}: Cannot handle repository format '$(list_get_type ${1})'\n" } @@ -258,7 +259,7 @@ function vcs_new ( function vcs_pull ( vcs_setup ${1} git pull ${GIT_SILENT_ARG} - vcs_update_submodules + vcs_update_submodules ${1} ) function vcs_push ( @@ -297,8 +298,7 @@ function vcs_to_list ( function vcs_update_submodules ( vcs_setup ${1} if [[ -e .gitmodules ]] { - git submodule init - git submodule update + git submodule update --init } ) -- cgit v1.2.3