CI: add --depth 1 to git clone for speed

Closes GH-6690.
This commit is contained in:
Max Semenik authored and Nikita Popov committed 2021-02-15 09:49:50 +01:00
1 parent 2b93ae601a
commit 1f3f7c4374
1 file changed
+1 -1
+1 -1
View File
@@ -20,7 +20,7 @@ if not exist "%SDK_RUNNER%" (
if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
echo Cloning remote SDK repository
git clone --branch %SDK_BRANCH% %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
git clone --branch %SDK_BRANCH% %SDK_REMOTE% --depth 1 "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
)
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a