From e272f7e0e25534ce7319508be89431644eef5eab Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 20 Feb 2017 14:35:39 -0300 Subject: Minor fixes at init action --- share/hydra/init | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'share/hydra/init') 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 ) -- cgit v1.2.3