mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 19:23:42 +08:00
fix(build): pin shell/SQL scripts to LF via .gitattributes
This commit is contained in:
parent
f517580e22
commit
0cfd8b133a
19
.gitattributes
vendored
Normal file
19
.gitattributes
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# Line-ending policy.
|
||||
#
|
||||
# Shell scripts are bind-mounted into Linux containers (e.g.
|
||||
# docker/postgres/init/ -> /docker-entrypoint-initdb.d) and executed there.
|
||||
# A CRLF checkout on Windows (core.autocrlf=true is the Git for Windows
|
||||
# default) turns the shebang into "#!/bin/sh\r", which fails with
|
||||
# "cannot execute: required file not found". Pin them to LF everywhere.
|
||||
#
|
||||
# SQL files are pinned to LF too so Flyway migration checksums stay
|
||||
# identical across platforms.
|
||||
|
||||
*.sh text eol=lf
|
||||
*.bash text eol=lf
|
||||
*.sql text eol=lf
|
||||
|
||||
# Windows-native scripts keep CRLF.
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
*.ps1 text eol=crlf
|
||||
Loading…
Reference in New Issue
Block a user