From 45824a5b4501bf1bf34a05684e2f4c4e11029e0a Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sat, 13 Feb 2021 20:22:26 +0300 Subject: [PATCH] CI: add --depth 1 to git clone for speed --- appveyor/build.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor/build.bat b/appveyor/build.bat index c8005734e16eb..3593228389e0f 100644 --- a/appveyor/build.bat +++ b/appveyor/build.bat @@ -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