blob: 856c2fa03700e12ecbca1bd04db8cdd6c727633d [file]
#!/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'
# Workaround for issue where the home dir of `msys64` sometimes doesn't exist on github runners
echo $HOME
mkdir -p $HOME
git config --replace-all --global core.autocrlf false