Control for core.autocrlf during testing

This explicitly sets `core.autocrlf` before diff patch testing to fix #1374

These changes probably need to be taken even further, but for now this fixes the tests that are currently vulnerable to the environment setting.