Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent line ending conversion in repos (#333)
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. Signed-off-by: Michael Kubacki <[email protected]>
- Loading branch information