X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2Fgitclone.sh;fp=Linux%2Fscripts%2Fgitclone.sh;h=24bcb572ec5005f23007b410ef3f8a262eb3eecd;hb=1c504ce22d2ad945d8ead7ee7df63284a9830a56;hp=064c187c1dab1b416326a332354b6b88c0c7e857;hpb=5808bbd8f0c5422f781e5f9ffb31fb650e649817;p=creaToolsTools.git diff --git a/Linux/scripts/gitclone.sh b/Linux/scripts/gitclone.sh index 064c187..24bcb57 100644 --- a/Linux/scripts/gitclone.sh +++ b/Linux/scripts/gitclone.sh @@ -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 ..