Skip to content

Commit 25983fb

Browse files
committed
no git detached head warning
1 parent 32fed02 commit 25983fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/windows/build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mkdir "%PHP_BUILD_CACHE_BASE_DIR%"
1313
mkdir "%PHP_BUILD_OBJ_DIR%"
1414

1515
echo Cloning remote SDK repository
16-
git clone -q --branch %SDK_BRANCH% %SDK_REMOTE% --depth 1 "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
16+
git clone -q -c advice.detachedHead=false --branch %SDK_BRANCH% %SDK_REMOTE% --depth 1 "%PHP_BUILD_CACHE_SDK_DIR%" 2>&1
1717

1818
for /f "tokens=*" %%a in ('type %PHP_BUILD_CACHE_SDK_DIR%\VERSION') do set GOT_SDK_VER=%%a
1919
echo Got SDK version %GOT_SDK_VER%

0 commit comments

Comments
 (0)