Tyler Clendenin
Tyler Clendenin

Reputation: 1489

How to prevent Composer from using global core.autocrlf config on Windows

I have a private git repo configured in my composer.json file.

I am trying to require a package from it, however I want composer to checkout the repository with lf line endings.

I want to keep my global core.autocrlf set to true.

Is there any way to tell composer to run the git clone command with autocrlf set to false?

Upvotes: 1

Views: 150

Answers (1)

Tyler Clendenin
Tyler Clendenin

Reputation: 1489

I found if I add

* text eol=lf

to .gitattributes it checks out correctly

Upvotes: 1

Related Questions