From: Max Semenik Date: Sat, 13 Feb 2021 17:22:26 +0000 (+0300) Subject: CI: add --depth 1 to git clone for speed X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f3f7c4374f15bcd33110bf1549a005e2d8c4a81;p=php CI: add --depth 1 to git clone for speed Closes GH-6690. --- diff --git a/appveyor/build.bat b/appveyor/build.bat index c8005734e1..3593228389 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