Skip to content

Commit b1761fb

Browse files
committed
CI: tweak git config handling
Tweak the git configuration handling on Windows to alter the configuration for the particular repository rather than globally.
1 parent 8238d2c commit b1761fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/build-windows.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ endlocal
8080
:: It supposes the %CD% is the source root.
8181
setlocal enableextensions enabledelayedexpansion
8282

83-
git config --global core.autocrlf false
83+
git -C "%source_root%\swift" config --local core.autocrlf input
84+
git -C "%source_root%\swift" config --local core.symlink true
85+
git -C "%source_root%\swift" checkout HEAD
86+
8487
git clone --depth 1 --single-branch https://github.com/apple/swift-cmark cmark %exitOnError%
8588
git clone --depth 1 --single-branch --branch swift/master https://github.com/apple/llvm-project llvm-project %exitOnError%
8689
mklink /D "%source_root%\clang" "%source_root%\llvm-project\clang"

0 commit comments

Comments
 (0)