]> gitweb.fluxo.info Git - hydra.git/commitdiff
Sync: repo URLs
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Oct 2015 14:36:15 +0000 (12:36 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Oct 2015 14:36:15 +0000 (12:36 -0200)
share/hydra/init
share/hydra/sync

index 7b6d34896c2bdfc7928ef6e5c0c1565547e5192b..138c5bd3a3155554c53e9503018ad53f688bea35 100755 (executable)
@@ -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
 
index fc71b73c0a46db23f2f4663a1cfd27088ec20844..d425d90c058d3b7d06ede5a891d08242fd9a8073 100755 (executable)
@@ -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