diff --git a/.circleci/config.yml b/.circleci/config.yml index 68547f52fb..a7107d7ce9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - checkout - run: | cd ../ - git clone https://github.com/mattermost/mattermost-webapp.git + git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-webapp.git cd mattermost-webapp git checkout $CIRCLE_BRANCH || git checkout master export WEBAPP_GIT_COMMIT=$(git rev-parse HEAD) @@ -53,7 +53,7 @@ jobs: at: ~/mattermost/ - run: name: Checkout config - command: cd .. && git clone https://github.com/mattermost/security-automation-config + command: cd .. && git clone --depth=1 https://github.com/mattermost/security-automation-config - run: name: Install Go command: sudo apt-get update && sudo apt-get install golang @@ -134,7 +134,7 @@ jobs: at: ~/mattermost/ - run: command: | - git clone https://github.com/mattermost/mattermost-api-reference.git + git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-api-reference.git cd mattermost-api-reference echo "Trying to checkout the same branch on mattermost-api-reference as mattermost-server" git checkout ${CIRCLE_BRANCH} || true