summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-02-20 14:35:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-02-20 14:35:39 -0300
commite272f7e0e25534ce7319508be89431644eef5eab (patch)
tree9a120bab268d6cbf78ea99b25599d96b8a050181
parentd55a580084c7130eb3a454ec3be4f51d6e659345 (diff)
downloadhydra-e272f7e0e25534ce7319508be89431644eef5eab.tar.gz
hydra-e272f7e0e25534ce7319508be89431644eef5eab.tar.bz2
Minor fixes at init action
-rwxr-xr-xshare/hydra/init5
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
)