aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:20:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:20:13 -0300
commite62b10ed9409631ddd897127e45f0998c284d976 (patch)
tree1ca04a9b094b8df849bc19b21cc9c9a4503a009b /share
parent8007b99fde8f46a7adbb05a40fabc5cea59fdec6 (diff)
downloadhydra-e62b10ed9409631ddd897127e45f0998c284d976.tar.gz
hydra-e62b10ed9409631ddd897127e45f0998c284d976.tar.bz2
Recursive clones at init
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/init4
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