File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,18 +107,18 @@ commands:
107
107
- run :
108
108
name : Checkout code shallow and change to working directory
109
109
command : |
110
- git clone --depth 1 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" $CIRCLE_WORKING_DIRECTORY
110
+ git clone --depth 10 "$CIRCLE_REPOSITORY_URL" --branch "$CIRCLE_BRANCH" $CIRCLE_WORKING_DIRECTORY
111
111
cd $CIRCLE_WORKING_DIRECTORY
112
112
113
113
if [ -n "$CIRCLE_TAG" ]; then
114
114
echo 'Fetch tag'
115
- git fetch --depth 1 --force origin "+refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
115
+ git fetch --depth 10 --force origin "+refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
116
116
elif [[ $(echo $CIRCLE_PULL_REQUEST | grep -E "${CIRCLE_BRANCH}$") ]]; then
117
117
echo 'Fetch pull request'
118
- git fetch --depth 1 --force origin "$CIRCLE_BRANCH/head:remotes/origin/$CIRCLE_BRANCH"
118
+ git fetch --depth 10 --force origin "$CIRCLE_BRANCH/head:remotes/origin/$CIRCLE_BRANCH"
119
119
else
120
120
echo 'Fetch branch'
121
- git fetch --depth 1 --force origin "$CIRCLE_BRANCH:remotes/origin/$CIRCLE_BRANCH"
121
+ git fetch --depth 10 --force origin "$CIRCLE_BRANCH:remotes/origin/$CIRCLE_BRANCH"
122
122
fi
123
123
echo "Checking out the CI HEAD"
124
124
git reset --hard "$CIRCLE_SHA1"
You can’t perform that action at this time.
0 commit comments