-
-
Notifications
You must be signed in to change notification settings - Fork 635
Expand file tree
/
Copy path.gitattributes
More file actions
30 lines (28 loc) · 908 Bytes
/
Copy path.gitattributes
File metadata and controls
30 lines (28 loc) · 908 Bytes
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
# Normalize end-of-line handling across the repository.
# Without this file, cloning on Windows with core.autocrlf=true rewrites the
# shell scripts with CRLF and bash fails with: "$'\r': command not found".
* text=auto
# Files that MUST stay LF even on Windows.
# - .sh/.bash are executed by bash, which chokes on a trailing \r.
# - .js/.mjs/.cjs/.py carry `#!/usr/bin/env ...` lines (bin/cli.js,
# scripts/*.mjs, eval helpers). A CR there breaks the interpreter lookup on
# Unix and survives Vite's shebang stripping on Windows, so importing those
# files from a test blows up with "Invalid or unexpected token".
*.sh text eol=lf
*.bash text eol=lf
*.js text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
*.py text eol=lf
# Binary files: no conversion.
*.png binary
*.jpg binary
*.jpeg binary
*.webp binary
*.gif binary
*.ico binary
*.pdf binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary