Skip to content

Commit f30a7ad

Browse files
sortieCommit Queue
authored and
Commit Queue
committed
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 <[email protected]> Commit-Queue: William Hesse <[email protected]> Auto-Submit: Jonas Termansen <[email protected]> Reviewed-by: William Hesse <[email protected]>
1 parent 1b5368f commit f30a7ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.cpp text eol=lf
55
*.h text eol=lf
66
*.dart text eol=lf
7+
*.sh text eol=lf
78

89
# Explicitly declare text files we want to be normalized.
910
*.gyp text

0 commit comments

Comments
 (0)