]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/gitclone.sh
Added a new installation mode : via git repository without authentification (option...
[creaToolsTools.git] / Linux / scripts / gitclone.sh
index 064c187c1dab1b416326a332354b6b88c0c7e857..24bcb572ec5005f23007b410ef3f8a262eb3eecd 100644 (file)
@@ -1,8 +1,17 @@
 #$1 creasource                   
 #$2 generationdir 
+#$3 sourcesFrom (either GIT or GIT-READ-ONLY)
 
-   
 cd $2/creatools_source 
+
+if [ $sourcesFrom = GIT ]
+then
 git clone ssh://gitolite@git.creatis.insa-lyon.fr/$1
+
+else # $sourcesFrom = GIT-READ-ONLY , anonymous access
+git clone git://git.creatis.insa-lyon.fr/$1
+
+fi
+
 cd ..