Add .gitattributes: *.sh text eol=lf for Windows clones (#19)
Some checks failed
Rust / build-linux (linux-aarch64, ARM64, ubuntu-24.04-arm, aarch64-unknown-linux-gnu) (push) Waiting to run
Rust / build-windows (windows-aarch64, woa64, windows-11-arm, aarch64-pc-windows-msvc) (push) Waiting to run
Rust / build-windows (windows-x86_64, win64, windows-2025, x86_64-pc-windows-msvc) (push) Waiting to run
Rust / build-macos (macos-aarch64, ARM64, aarch64-apple-darwin) (push) Waiting to run
Rust / build-android (29.0.14206865, ubuntu-24.04, 33) (push) Waiting to run
Rust / Collect release artifacts (push) Blocked by required conditions
Rust-lint / lint-linux (push) Waiting to run
Rust / build-linux (linux-x86_64, X64, ubuntu-24.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
Some checks failed
Rust / build-linux (linux-aarch64, ARM64, ubuntu-24.04-arm, aarch64-unknown-linux-gnu) (push) Waiting to run
Rust / build-windows (windows-aarch64, woa64, windows-11-arm, aarch64-pc-windows-msvc) (push) Waiting to run
Rust / build-windows (windows-x86_64, win64, windows-2025, x86_64-pc-windows-msvc) (push) Waiting to run
Rust / build-macos (macos-aarch64, ARM64, aarch64-apple-darwin) (push) Waiting to run
Rust / build-android (29.0.14206865, ubuntu-24.04, 33) (push) Waiting to run
Rust / Collect release artifacts (push) Blocked by required conditions
Rust-lint / lint-linux (push) Waiting to run
Rust / build-linux (linux-x86_64, X64, ubuntu-24.04, x86_64-unknown-linux-gnu) (push) Has been cancelled
This commit is contained in:
commit
82a4e2ba2f
7
.gitattributes
vendored
Normal file
7
.gitattributes
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
# Force LF line endings for shell scripts.
|
||||
# Without this, Windows clones (git's core.autocrlf=true default) check out
|
||||
# CRLF and the shebang dies with: /usr/bin/env: 'bash\r': No such file or directory (exit 127)
|
||||
# Keep every *.sh blob byte-clean; existing clones need a forced re-checkout
|
||||
# (rm -f .git/index && git reset --hard HEAD) because git does not rewrite a
|
||||
# file whose blob is unchanged.
|
||||
*.sh text eol=lf
|
||||
Reference in New Issue
Block a user