Skip to content

Commit 00b2d37

Browse files
committed
fix
1 parent a0e45b0 commit 00b2d37

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/scripts/windows/build.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ if not exist "%SDK_RUNNER%" (
2323

2424
if not exist "%PHP_BUILD_CACHE_SDK_DIR%" (
2525
echo Cloning remote SDK repository
26-
git clone --branch %SDK_BRANCH% %SDK_REMOTE% --depth 1 "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
26+
git clone %SDK_REMOTE% "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
27+
pushd "%PHP_BUILD_CACHE_SDK_DIR%"
28+
git reset --hard %SDK_BRANCH%
29+
popd
2730
)
2831

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

0 commit comments

Comments
 (0)