summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-07 10:28:47 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-07 10:28:47 +0200
commit962a7c47577311a6ee9c86973c2b3ac9b52259fe (patch)
tree6dc7b2a62f255406efa1334b599f90c319505cd9
parent9c11f8dc686f452e0e091bacf4a2df3af7ff326e (diff)
Add support for git submodules
-rwxr-xr-xbin/ct9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ct b/bin/ct
index ca1de35..6454fad 100755
--- a/bin/ct
+++ b/bin/ct
@@ -297,6 +297,14 @@ function vcs_to_list (
}
)
+function vcs_update_submodules (
+ vcs_setup ${1}
+ if [[ -e .gitmodules ]] {
+ git submodule init
+ git submodule update
+ }
+)
+
## List stuff
function list_exists {
@@ -443,6 +451,7 @@ function global_hook {
;;
post-update)
triggers+=${1}
+ vcs_update_submodules ${1}
check_prereqs ${1}
if [[ -r Makefile ]] {
info "${1}: Running make\n"