Closed makubacki closed 6 months ago
Tested in the following mu_basecore Windows agent pipeline runs:
On hold to let this PR verify there's no unexpected impact before rolling out to other repos.
On hold to let this PR verify there's no unexpected impact before rolling out to other repos.
No negative consequences seen from that PR, so I'm going to merge this PR now.
Unsets the text attribute on all files to prevent their line endings from being normalized.
See https://git-scm.com/docs/gitattributes for background.
This was previously accomplished solely by instructing users to set core.autocrlf to false. However, that does not translate to pipelines and setting in a pipeline requires the system level git configuration to be modified prior to checkout. Git configs cannot be checked into to a repo and automatically used for security reasons.
This is a simple way to check the change into the repo so it applies for all users including pipelines to prevent line ending conversion.
This allows plugins like LineEndingCheck to produce similar results in pipelines on Linux and Windows agents.