From c424be882c18225466f03da2aee6ff8ab968ebf5 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 20 Aug 2020 20:30:32 +0530 Subject: [PATCH] MM-27948: Use --depth=1 to clone git repos faster (#15309) * MM-27948: Use --depth=1 to clone git repos faster https://mattermost.atlassian.net/browse/MM-27948 * trigger CI * Added no single branch --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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