From f30a7ade486583d8cb770c56702cc6df4d492779 Mon Sep 17 00:00:00 2001 From: Jonas Termansen Date: Tue, 19 Mar 2024 11:27:14 +0000 Subject: [PATCH] Fix allowing Windows newlines in sh files. llvm.sh must always use Linux newlines due to the #! line as a \r character is considered part of the invoked program. This change fixes that by simply forcing Unix newlines on all .sh files, like we do with other file formats like C++ & Dart already. Fixes: b/330293090 Change-Id: Iaf044da487261908f96c76d5c62385a033106a0b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358480 Commit-Queue: Jonas Termansen Commit-Queue: William Hesse Auto-Submit: Jonas Termansen Reviewed-by: William Hesse --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 6d0e2ede718..04c8368aa74 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,6 +4,7 @@ *.cpp text eol=lf *.h text eol=lf *.dart text eol=lf +*.sh text eol=lf # Explicitly declare text files we want to be normalized. *.gyp text