Add LF override for shell scripts in .gitattributes
Upstream defaults all text files to CRLF (Windows-only dev). On Linux, bash refuses to execute shell scripts with CRLF line endings, which blocked the v0.1.0 pre-push hook with 'env: »bash\r«: nicht gefunden'. Override the default for *.sh, .githooks/*, and scripts/* to eol=lf so the hook + preflight runs cleanly on both Linux and Windows.
This commit is contained in:
+11
-1
@@ -1,3 +1,13 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
# Asriel's upstream default: CRLF for text files (Windows-only dev workflow).
|
||||
# Kept intact to minimise the diff against upstream Craftimizer.
|
||||
* text eol=crlf
|
||||
|
||||
# Hellion Forge override: shell scripts and git hooks MUST be LF only,
|
||||
# otherwise bash on Linux refuses to execute them with
|
||||
# "env: »bash\r«: Datei nicht gefunden". This blocked the v0.1.0 release
|
||||
# pipeline push on Linux before .gitattributes was extended.
|
||||
*.sh text eol=lf
|
||||
.githooks/* text eol=lf
|
||||
scripts/* text eol=lf
|
||||
|
||||
*.png binary
|
||||
Reference in New Issue
Block a user