summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-03-19 19:45:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-03-19 19:45:59 +0100
commitdcebfc77de8884440e7812b9468cfaa493541d77 (patch)
treeedf9a539bcd3c3239a4c3e73a31e5f8fa10326ce
parent546959b142f506be7730c51a58213b74b7d991a8 (diff)
Fix submodule handling
-rwxr-xr-xbin/ct6
1 files changed, 3 insertions, 3 deletions
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
}
)