]> git.lizzy.rs Git - rust.git/blob - src/ci/scripts/disable-git-crlf-conversion.sh
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / src / ci / scripts / disable-git-crlf-conversion.sh
1 #!/bin/bash
2 # Disable automatic line ending conversion, which is enabled by default on
3 # GitHub's Windows image. Having the conversion enabled caused regressions both
4 # in our test suite (it broke miri tests) and in the ecosystem, since we
5 # started shipping install scripts with CRLF endings instead of the old LF.
6 #
7 # Note that we do this a couple times during the build as the PATH and current
8 # user/directory change, e.g. when mingw is enabled.
9
10 set -euo pipefail
11 IFS=$'\n\t'
12
13 git config --replace-all --global core.autocrlf false