Skip to content

Commit 1f3f7c4

Browse files
MaxSemnikic
authored andcommitted
CI: add --depth 1 to git clone for speed
Closes GH-6690.
1 parent 2b93ae6 commit 1f3f7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appveyor/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if not exist "%SDK_RUNNER%" (
2020

2121
if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
2222
echo Cloning remote SDK repository
23-
git clone --branch %SDK_BRANCH% %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
23+
git clone --branch %SDK_BRANCH% %SDK_REMOTE% --depth 1 "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
2424
)
2525

2626
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a

0 commit comments

Comments
 (0)