CRLF on windows

This commit is contained in:
Simon Knott 2024-07-18 17:45:30 +02:00
parent 2e6ed2f2c8
commit 226e00b61c
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -47,6 +47,8 @@ const test = baseTest.extend({
`, `,
}); });
git(`init --initial-branch=main`); git(`init --initial-branch=main`);
if (process.platform === 'win32')
git(`config --global core.autocrlf true`);
git(`config --local user.name "Robert Botman"`); git(`config --local user.name "Robert Botman"`);
git(`config --local user.email "botty@mcbotface.com"`); git(`config --local user.email "botty@mcbotface.com"`);
git(`add .`); git(`add .`);