From 4d6f2691b098965df4236670d4911e7ff08a9789 Mon Sep 17 00:00:00 2001 From: Djaytan <26904516+Djaytan@users.noreply.github.com> Date: Sun, 12 Jan 2025 23:47:53 +0100 Subject: [PATCH] chore: normalize line endings _This change is similar to https://github.com/Incendo/cloud/pull/786._ --- .gitattributes | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index 022b841..26d5621 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,9 @@ -# -# https://help.github.com/articles/dealing-with-line-endings/ -# -# These are explicitly windows files and should use crlf -*.bat text eol=crlf +# Documentation: https://www.git-scm.com/docs/gitattributes + +# Set default behavior to automatically normalize line endings. +* text=auto eol=lf + +# Force batch scripts to always use CRLF line endings so that if a repo is accessed +# in Windows via a file share from Linux, the scripts will work. +*.cmd text eol=crlf +*.bat text eol=crlf