ci: explicitly disable CRLF conversion on Windows

The Azure image enables CRLF conversion on Windows builders, but that
caused regressions both in our test suite (the miri test suite broke)
and in the ecosystem, since we started shipping install scripts with
CRLF endings instead of the old LF. The Godbolt Compiler Explorer is one
such case of breakage.

This adds a step to the build explicitly disabling the conversion before
the repository is checked out.
This commit is contained in:
Pietro Albini 2019-07-01 21:57:08 +02:00
parent 6ea4036cd2
commit 239a404cae
No known key found for this signature in database
GPG Key ID: 3E06ABE80BAAF19C
1 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,13 @@
steps:
# Disable automatic line ending conversion, which is enabled by default on
# Azure's Windows image. Having the conversion enabled caused regressions both
# in our test suite (it broke miri tests) and in the ecosystem, since we
# started shipping install scripts with CRLF endings instead of the old LF.
- bash: git config --global core.autocrlf false
displayName: "Disable git automatic line ending conversion"
- checkout: self
fetchDepth: 2