diff options
-rwxr-xr-x | share/hydra/init | 2 | ||||
-rwxr-xr-x | share/hydra/sync | 4 |
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 |