]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/gitclone.sh
Fixed a bug in the anonymization of source code retrieval via git protocol.
[creaToolsTools.git] / Linux / scripts / gitclone.sh
index a1d2f354868f5ce047f6fa470015119eaeefbb6e..04859c40c5f7235debeac3dcceabe97ade927cb5 100644 (file)
@@ -1,9 +1,17 @@
 #$1 creasource                   
 #$2 generationdir 
-#$3 gitUserName
+#$3 sourcesFrom (either GIT or GIT-READ-ONLY)
 
-   
 cd $2/creatools_source 
+
+if [ $3 = 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 ..