From 962a7c47577311a6ee9c86973c2b3ac9b52259fe Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Jun 2010 10:28:47 +0200 Subject: Add support for git submodules --- bin/ct | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin') 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" -- cgit v1.2.3