# Clone configuration repository or setup a new hydra
if [ ! -z "$REMOTE" ]; then
- mkdir -p $BASEDIR
-
# Try to clone the superproject first
git clone $REMOTE $BASEDIR 2> /dev/null
(
+ mkdir -p $BASEDIR
cd $BASEDIR
# Initialize only the required repositories
if [ -e '.gitmodules' ] && grep -q \"config\" .gitmodules; then
git submodule update --init $repo
else
- git clone ${REMOTE}$repo `basename $repo .git`
+ git clone ${REMOTE}/$repo `basename $repo .git`
fi
done
)