From da2185f420f966df5143c5722c1163bfb809b6a9 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Wed, 15 Oct 2025 22:19:00 +0200 Subject: [PATCH] [formatters][csharp] Fixed leftover linefeed state when switching from default 4.2 to 4.3-beta branch. --- formatters/format-csharp.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/formatters/format-csharp.sh b/formatters/format-csharp.sh index c82fbc76a..0769ddcc7 100755 --- a/formatters/format-csharp.sh +++ b/formatters/format-csharp.sh @@ -12,6 +12,14 @@ if command -v dotnet &> /dev/null; then # Store original directory pushd "$dir" > /dev/null + # Ensure line endings are reset after checkout from default branch + git rm --cached -r ../spine-csharp/ + git rm --cached -r ../spine-monogame/ + git rm --cached -r ../spine-unity/ + git checkout HEAD -- ../spine-csharp/ + git checkout HEAD -- ../spine-monogame/ + git checkout HEAD -- ../spine-unity/ + cp .editorconfig ../spine-csharp/ 2>/dev/null || true cp .editorconfig ../spine-monogame/ 2>/dev/null || true cp .editorconfig ../spine-unity/ 2>/dev/null || true