Skip to content

Commit

Permalink
windows: ensure input line endings are used in Git checkout
Browse files Browse the repository at this point in the history
Otherwise they could be normalized to CRLF depending on Git's default
settings and sh.exe would choke.

Closes #54.
  • Loading branch information
indygreg committed Aug 23, 2020
1 parent fa4bd80 commit 8c754e4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cpython-windows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,8 @@ def build_libffi(
subprocess.run(
[
"git.exe",
"-c",
"core.autocrlf=input",
"clone",
"--single-branch",
"--branch",
Expand All @@ -1435,7 +1437,13 @@ def build_libffi(
)

subprocess.run(
["git.exe", "checkout", "ed22026f39b37f892ded95d7b30e77dfb5126334"],
[
"git.exe",
"-c",
"core.autocrlf=input",
"checkout",
"ed22026f39b37f892ded95d7b30e77dfb5126334",
],
cwd=ffi_source_path,
check=True,
)
Expand Down

0 comments on commit 8c754e4

Please sign in to comment.