From fa4ff7534bf7f280d3c8df107473102a89a43a2b Mon Sep 17 00:00:00 2001 From: Pipo Bimbo Date: Mon, 28 Nov 2022 17:25:37 +0100 Subject: [PATCH] for windows and docker usage compatibilities, force certain files to use LF line endings, even on Windows --- .gitattributes | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 0907b04cb6..dc15ed793c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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. # 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 \ No newline at end of file +*.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 \ No newline at end of file