From bb05aa8d27cf03e72edcfd762733a618868afcb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Kloo=C3=9F?= Date: Mon, 22 Sep 2014 15:42:56 +0200 Subject: [PATCH] add git submodule support --- modman | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modman b/modman index c98ebb3..12ecc52 100755 --- a/modman +++ b/modman @@ -911,6 +911,9 @@ case "$action" in elif [ "$action" = "clone" ]; then verb='cloned' git clone --recursive "$src" $@ "$module" && success=1 + if [ -f ../.gitmodules ]; then + git submodule add $src $module + fi elif [ "$action" = "hgclone" ]; then verb='cloned' hg clone "$src" $@ "$module" && success=1