From a76c6fd84a706ded64f23e2af11b4accb4fe3ef2 Mon Sep 17 00:00:00 2001 From: Devin Nemec Date: Mon, 10 Aug 2020 09:13:52 -0500 Subject: [PATCH] explicitly clone and use master branch --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 83b3ae9..4bef9f3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"