mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-10-02 09:24:43 +08:00
Co-authored-by: RRXXZZYY <RRXXZZYY@users.noreply.github.com> Co-authored-by: wyuc <wang-yc24@mails.tsinghua.edu.cn>
14 lines
691 B
Plaintext
14 lines
691 B
Plaintext
# Keep detected text files on LF across platforms so formatting checks see the
|
|
# same contents on Windows, macOS, and Linux.
|
|
* text=auto eol=lf
|
|
|
|
# Shell scripts must keep LF endings even when checked out on Windows.
|
|
#
|
|
# With Git's default `core.autocrlf=true` on Windows, docker-entrypoint.sh is
|
|
# rewritten to CRLF at checkout. COPY-ing it into a Linux image then leaves the
|
|
# shebang reading `#!/bin/sh\r`, so the kernel looks for an interpreter whose
|
|
# name ends in a carriage return and the container exits immediately with
|
|
# `exec /usr/local/bin/docker-entrypoint.sh: no such file or directory` —
|
|
# a message that points at the script rather than at the interpreter.
|
|
*.sh text eol=lf
|