checkout tag only

This commit is contained in:
Roland Gruber 2018-06-20 09:50:45 +02:00
parent a975c80404
commit c73b4392b0
1 changed files with 3 additions and 5 deletions

View File

@ -19,7 +19,7 @@ elif [ "$1" = "-b" ]
then
export REPO_BRANCH="$2"
else
export REPO_BRANCH="tags/$1"
export REPO_BRANCH="$1"
fi
# minifies the JavaScript files
@ -51,17 +51,15 @@ function minifyCSS {
}
echo "Getting files..."
git clone git@github.com:LDAPAccountManager/lam.git github
git clone -b $REPO_BRANCH --single-branch git@github.com:LDAPAccountManager/lam.git github
cd github
git checkout $REPO_BRANCH
mv lam ../
mv lam-packaging ../
cd ..
rm -rf github
git clone git@gitlab.com:LDAPAccountManager/lamPro.git lamPro
git clone -b $REPO_BRANCH --single-branch git@gitlab.com:LDAPAccountManager/lamPro.git lamPro
cd lamPro
git checkout $REPO_BRANCH
rm -rf .git
cd ..