diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-07 10:28:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-07 10:28:47 +0200 |
commit | 962a7c47577311a6ee9c86973c2b3ac9b52259fe (patch) | |
tree | 6dc7b2a62f255406efa1334b599f90c319505cd9 /bin | |
parent | 9c11f8dc686f452e0e091bacf4a2df3af7ff326e (diff) |
Add support for git submodules
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ct | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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" |