-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitattributes
More file actions
32 lines (28 loc) · 1.1 KB
/
Copy path.gitattributes
File metadata and controls
32 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Line endings, pinned here rather than left to whatever core.autocrlf is set to
# on the machine doing the checkout.
#
# THIS IS NOT COSMETIC, AND THE SHELL SCRIPTS ARE WHY. Git for Windows defaults
# core.autocrlf to `true`, which rewrites every text file to CRLF on checkout.
# A clone made on Windows therefore gets bin/*.sh with a CR on the end of every
# line, and a real bash -- WSL, a container built from that clone, a Linux box
# sharing the drive -- reads the CR as part of the text:
#
# $ ./bin/webui.sh
# /usr/bin/env: 'bash\r': No such file or directory
# $ bash bin/webui.sh
# bin/webui.sh: line 11: set: pipefail: invalid option name
#
# Neither message names the cause. Git Bash happens to tolerate the CR and hides
# the problem on the one shell a Windows user is most likely to try first.
#
# The .cmd shims are pinned the other way, to CRLF, because cmd.exe is the one
# consumer here that genuinely prefers it.
* text=auto
*.sh text eol=lf
*.py text eol=lf
*.md text eol=lf
*.json text eol=lf
*.html text eol=lf
*.cmd text eol=crlf
*.ps1 text eol=crlf
*.gguf binary