summaryrefslogtreecommitdiffstats
path: root/src/ci/scripts/disable-git-crlf-conversion.sh
blob: 6de080a9fde00a8c6e5947325fc4f84e5d45122c (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
# GitHub'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