X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2Fgitclone.sh;h=04859c40c5f7235debeac3dcceabe97ade927cb5;hb=f3e296c6d78104cc375bcf12e8a9c62431f86f51;hp=064c187c1dab1b416326a332354b6b88c0c7e857;hpb=cd76438d0a105d5d6619e94b682613dfa8645313;p=creaToolsTools.git diff --git a/Linux/scripts/gitclone.sh b/Linux/scripts/gitclone.sh index 064c187..04859c4 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 [ $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 ..