From 84e2c077a9ca32d36413beabacca07240fa2ca4d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 20 Feb 2017 16:03:45 -0300 Subject: Other way to guess submodules at init --- share/hydra/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/hydra/init b/share/hydra/init index 161c723..7389924 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -49,7 +49,7 @@ if [ ! -z "$REMOTE" ]; then # Initialize only the required repositories for repo in $BASEREPOS; do - if [ -e '.gitmodules' ] && grep -q \"$repo\" .gitmodules; then + if [ -e '.gitmodules' ] && git submodule | grep -q " $repo "; then git submodule update --init $repo else REMOTE="`echo $REMOTE | sed -e 's|/$||'`" -- cgit v1.2.3