explicitly clone and use master branch

This commit is contained in:
Devin Nemec 2020-08-10 09:13:52 -05:00
parent dc3ca8455d
commit a76c6fd84a

View File

@ -18,7 +18,7 @@ echo "Cloning destination git repository"
# Setup git
git config --global user.email "$USER_EMAIL"
git config --global user.name "$GITHUB_USERNAME"
git clone "https://$API_TOKEN_GITHUB@github.com/$REPO_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR"
git clone --single-branch --branch master "https://$API_TOKEN_GITHUB@github.com/$REPO_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR"
ls -la "$CLONE_DIR"
echo "Cleaning destination repository of old files"