Files in checkout have EOL changed from LF to CRLF

The issue here appears to be that git is configured as follows (taken from a Windows-based build):

$ git config -l

This feels like the wrong default ( because otherwise there’s a considerable amount of work required to undo this behaviour. If anything, I would suggest making the default false and then allowing people to configure it to true in the .travis.yml git: section (

My current work around is the following addition to my .travis.yml:

  - cd ../..
  - mv $TRAVIS_REPO_SLUG _old
  - git config --global core.autocrlf false
  - git clone --depth=50 _old $TRAVIS_REPO_SLUG

Edit to fix env var name

Edit to fix error in before_install

1 Like