mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
cirrus: increase git clone depth
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user