diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-03-19 19:45:59 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-03-19 19:45:59 +0100 |
commit | dcebfc77de8884440e7812b9468cfaa493541d77 (patch) | |
tree | edf9a539bcd3c3239a4c3e73a31e5f8fa10326ce /bin | |
parent | 546959b142f506be7730c51a58213b74b7d991a8 (diff) |
Fix submodule handling
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ct | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } ) |