aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/init
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:40:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-02-20 16:40:54 -0300
commitf48ac6329f1ffada4088184ff646136a5adfc865 (patch)
tree99d08dca18e756226ef3d54760daf218c30f4a97 /share/hydra/init
parente62b10ed9409631ddd897127e45f0998c284d976 (diff)
downloadhydra-f48ac6329f1ffada4088184ff646136a5adfc865.tar.gz
hydra-f48ac6329f1ffada4088184ff646136a5adfc865.tar.bz2
Simplify sync process
Diffstat (limited to 'share/hydra/init')
-rwxr-xr-xshare/hydra/init4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hydra/init b/share/hydra/init
index 0821d45..d3ec70f 100755
--- a/share/hydra/init
+++ b/share/hydra/init
@@ -49,9 +49,11 @@ if [ ! -z "$REMOTE" ]; then
# Initialize only the required repositories
for repo in $BASEREPOS; do
+ # There is a superproject, so we try to initialize submodules
if [ -e '.gitmodules' ] && git submodule | grep -q " $repo$"; then
git submodule update --init --recursive $repo
else
+ # No superproject, so we clone each repository
REMOTE="`echo $REMOTE | sed -e 's|/$||'`"
if git ls-remote ${REMOTE}/$repo &> /dev/null; then
@@ -131,4 +133,4 @@ echo "$HYDRA=\"$BASEDIR\"" >> $CONFIG
#read response
# Sync repositories
-hydra $HYDRA sync
+#hydra $HYDRA sync