aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-10-19 12:36:15 -0200
committerSilvio Rhatto <rhatto@riseup.net>2015-10-19 12:36:15 -0200
commit2d6949dded8388f2327c1a762aea34ada060a07a (patch)
tree1304429ff80ce0768b2049ab736aadecbb8cd0b3 /share
parentd74173d941b2a7229221627e9c462dc9f9a2121c (diff)
downloadhydra-2d6949dded8388f2327c1a762aea34ada060a07a.tar.gz
hydra-2d6949dded8388f2327c1a762aea34ada060a07a.tar.bz2
Sync: repo URLs
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydra/init2
-rwxr-xr-xshare/hydra/sync4
2 files changed, 3 insertions, 3 deletions
diff --git a/share/hydra/init b/share/hydra/init
index 7b6d348..138c5bd 100755
--- a/share/hydra/init
+++ b/share/hydra/init
@@ -32,7 +32,7 @@ elif grep -q -e "^$HYDRA=" $CONFIG &> /dev/null; then
echo "Hydra $HYDRA already registered"
exit 1
elif [ -d "$BASEDIR" ]; then
- echo "Folder $BASEDIR already exists, hydra $HYDRA already defined?"
+ echo "Folder $BASEDIR already exists, maybe you want to run 'hydra $HYDRA register'?"
exit 1
fi
diff --git a/share/hydra/sync b/share/hydra/sync
index fc71b73..d425d90 100755
--- a/share/hydra/sync
+++ b/share/hydra/sync
@@ -35,10 +35,10 @@ function hydra_sync {
echo "Please set domain configuration"
exit 1
fi
- url="gitolite@admin.`cat $HYDRA_FOLDER/config/domain`:$repository"
+ url="git@admin.`cat $HYDRA_FOLDER/config/domain`:$repository"
fi
- git clone $url $HYDRA_FOLDER/$repository
+ git clone ${url}${repository} $HYDRA_FOLDER/$repository
fi
if [ -d "$HYDRA_FOLDER/$repository/.git" ]; then