diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-02-20 16:20:13 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-02-20 16:20:13 -0300 |
commit | e62b10ed9409631ddd897127e45f0998c284d976 (patch) | |
tree | 1ca04a9b094b8df849bc19b21cc9c9a4503a009b /share | |
parent | 8007b99fde8f46a7adbb05a40fabc5cea59fdec6 (diff) | |
download | hydra-e62b10ed9409631ddd897127e45f0998c284d976.tar.gz hydra-e62b10ed9409631ddd897127e45f0998c284d976.tar.bz2 |
Recursive clones at init
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/init | 4 |
1 files changed, 2 insertions, 2 deletions
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 |