Skip to content

Commit 233ef6a

Browse files
committed
Updated .gitattributes to always use newline endings for .sh files.
It seems that Git checking out shell scripts with CRLF line endings is breaking some of the Docker-based demos on Windows, so this commit updates the .gitattributes file to always use newline endings for these files. Signed-off-by: Jacob Howard <[email protected]>
1 parent a752c89 commit 233ef6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.gitattributes

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Automatically normalize line endings to \n when checking in text files.
22
* text=auto
33

4-
# Enforce that Go module metadata files are always checked out with newline
5-
# endings, because Go tooling will normalize them to newline endings.
4+
# Enforce that Go module metadata files always use newline endings, because Go
5+
# tooling will normalize them to newline endings, even on Windows.
66
go.mod text eol=lf
77
go.sum text eol=lf
88

9+
# Enforce that shell scripts always use newline endings.
10+
*.sh text eol=lf
11+
912
# Enforce that Windows batch files always use CRLF line endings.
1013
*.bat text eol=crlf

0 commit comments

Comments
 (0)