X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2Fgitclone.sh;h=04859c40c5f7235debeac3dcceabe97ade927cb5;hb=f3e296c6d78104cc375bcf12e8a9c62431f86f51;hp=a1d2f354868f5ce047f6fa470015119eaeefbb6e;hpb=646380fa17cf687bb4703301ec71db999342aa4a;p=creaToolsTools.git diff --git a/Linux/scripts/gitclone.sh b/Linux/scripts/gitclone.sh index a1d2f35..04859c4 100644 --- a/Linux/scripts/gitclone.sh +++ b/Linux/scripts/gitclone.sh @@ -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 ..