git: prevent CRLF line ending conversion for patches on Windows

Otherwise the patch file might get line endings converted on git
checkout on Windows if the git option core.autocrlf=true is set,
and then the patches won't apply later when Meson tries to apply
them to the downloaded source code from tarball.

This could cause the pango patches not applying to the pango
subproject on Windows in some settings, and then the subproject
setup would fail and the pango plugin would not be built.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4314>
This commit is contained in:
Tim-Philipp Müller 2023-03-30 13:48:02 +01:00
parent 476a8aca78
commit baf34c311e

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
subprojects/packagefiles/*/*.patch text eol=lf