for windows and docker usage compatibilities, force certain files to use LF line endings, even on Windows

This commit is contained in:
Pipo Bimbo
2022-11-28 17:25:37 +01:00
parent 4bae28bbad
commit fa4ff7534b

10
.gitattributes vendored
View File

@@ -1,3 +1,11 @@
# Set default behavior to automatically normalize line endings.
* text=auto
# Set line endings to LF, even on Windows. Otherwise, execution within Docker fails. # Set line endings to LF, even on Windows. Otherwise, execution within Docker fails.
# See https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#per-repository-settings # See https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#per-repository-settings
*.sh text eol=lf *.sh text eol=lf
# Same thing for following files, but they don't have an sh extension
pre-commit eol=lf
webpack-dev-server eol=lf
install-bundler eol=lf