]> gitweb.fluxo.info Git - hydra.git/commitdiff
Recursive clones at init
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 19:20:13 +0000 (16:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 20 Feb 2017 19:20:13 +0000 (16:20 -0300)
share/hydra/init

index eaaaa890d7b3480652503718c62ac4d3448374a3..0821d45263e3f94362df4db0e7e3b3441f36027e 100755 (executable)
@@ -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