about summary refs log tree commit diff
path: root/src/ci/scripts/disable-git-crlf-conversion.sh
blob: 836145fbb8e602e5c8868929d451a8fb2a35d37f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# 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.
#
# Note that we do this a couple times during the build as the PATH and current
# user/directory change, e.g. when mingw is enabled.

set -euo pipefail
IFS=$'\n\t'

git config --replace-all --global core.autocrlf false