Skip to content

pre-commit: Fix import of ExternalData files with CRLF newlines

We use git hash-object to load the original file into the Git object store. Add the --no-filters option to avoid applying any conversion filters that git add would apply based on attributes. Otherwise file content may not be preserved, such CRLF newlines when core.autocrlf is true.

Merge request reports