Skip to content

Add test validating file line endings not mutated

Justin Tobler requested to merge jt/line-ending-test into master

What does this MR do and why?

Add test validating file line endings not mutated

When a repository file is created or modified in GitLab it is expected that the file content is committed exactly as submitted. Previously, Gitaly used the Git core.autocrlf=input configuration which mutated file line endings to always be LF when Gitaly generates the commit. This configuration has now been removed from Gitaly. Therefore, file line endings are no longer mutated.

Add a test validating that a file with CRLF line endings is committed without being modified.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports