Skip to content

Commit 8c754e4

Browse files
committed
windows: ensure input line endings are used in Git checkout
Otherwise they could be normalized to CRLF depending on Git's default settings and sh.exe would choke. Closes #54.
1 parent fa4bd80 commit 8c754e4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

cpython-windows/build.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,8 @@ def build_libffi(
14241424
subprocess.run(
14251425
[
14261426
"git.exe",
1427+
"-c",
1428+
"core.autocrlf=input",
14271429
"clone",
14281430
"--single-branch",
14291431
"--branch",
@@ -1435,7 +1437,13 @@ def build_libffi(
14351437
)
14361438

14371439
subprocess.run(
1438-
["git.exe", "checkout", "ed22026f39b37f892ded95d7b30e77dfb5126334"],
1440+
[
1441+
"git.exe",
1442+
"-c",
1443+
"core.autocrlf=input",
1444+
"checkout",
1445+
"ed22026f39b37f892ded95d7b30e77dfb5126334",
1446+
],
14391447
cwd=ffi_source_path,
14401448
check=True,
14411449
)

0 commit comments

Comments
 (0)