diff options
-rwxr-xr-x | share/hydra/init | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/hydra/init b/share/hydra/init index a69e885..0c33ad3 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -38,12 +38,11 @@ fi # 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 @@ -51,7 +50,7 @@ if [ ! -z "$REMOTE" ]; then 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 ) |