]> granicus.if.org Git - php/commitdiff
CI: add --depth 1 to git clone for speed
authorMax Semenik <maxsem.wiki@gmail.com>
Sat, 13 Feb 2021 17:22:26 +0000 (20:22 +0300)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 15 Feb 2021 08:49:50 +0000 (09:49 +0100)
Closes GH-6690.

appveyor/build.bat

index c8005734e16eb71711dc3699ec083ecbacec414f..3593228389e0f78750c83d3b34c17690dd970f1e 100644 (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