cirrus: increase git clone depth

This commit is contained in:
Xavier Delaruelle
2021-02-01 07:53:41 +01:00
parent 1b15a9daef
commit c237484cfa

View File

@@ -17,9 +17,9 @@ clone_template: &CLONE_TEMPLATE
yum install -y git
fi
if [ -z "$CIRRUS_PR" ]; then
git clone --depth=320 --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git clone --branch=$CIRRUS_BRANCH https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
else
git clone --depth=320 https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git clone https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
fi
cd $CIRRUS_WORKING_DIR
if [ -n "$CIRRUS_PR" ]; then