From 684c4febeed30ce5fa1cde9bf4e03db8d7b6d0a6 Mon Sep 17 00:00:00 2001 From: Djaytan <26904516+Djaytan@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:54:27 +0100 Subject: [PATCH] normalize line endings _This change is similar to https://github.com/Incendo/cloud/pull/786._ --- .gitattributes | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index 022b841..9063c9d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,8 @@ -# -# 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 + +# Enforce CRLF line endings in Windows batch scripts to avoid issues. +*.cmd text eol=crlf +*.bat text eol=crlf