From: Silvio Rhatto Date: Mon, 20 Feb 2017 19:20:13 +0000 (-0300) Subject: Recursive clones at init X-Git-Tag: 0.2.6~3 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e62b10ed9409631ddd897127e45f0998c284d976;p=hydra.git Recursive clones at init --- diff --git a/share/hydra/init b/share/hydra/init index eaaaa89..0821d45 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -50,12 +50,12 @@ if [ ! -z "$REMOTE" ]; then # Initialize only the required repositories for repo in $BASEREPOS; do if [ -e '.gitmodules' ] && git submodule | grep -q " $repo$"; then - git submodule update --init $repo + git submodule update --init --recursive $repo else REMOTE="`echo $REMOTE | sed -e 's|/$||'`" if git ls-remote ${REMOTE}/$repo &> /dev/null; then - git clone ${REMOTE}/$repo `basename $repo .git` + git clone --recursive ${REMOTE}/$repo `basename $repo .git` else echo "Skipping unavailable ${REMOTE}/$repo..." fi