diff options
Diffstat (limited to 'share/hydra/init')
-rwxr-xr-x | share/hydra/init | 4 |
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 |