Skip to content

Add .gitattributes to enforce LF line endings for .sh files - #94

Open
kimjune01 wants to merge 1 commit into
mholtkamp:mainfrom
kimjune01:fix-dos-line-endings-issue68
Open

Add .gitattributes to enforce LF line endings for .sh files#94
kimjune01 wants to merge 1 commit into
mholtkamp:mainfrom
kimjune01:fix-dos-line-endings-issue68

Conversation

@kimjune01

Copy link
Copy Markdown

Fixes #68

Summary

  • Adds a .gitattributes file that forces *.sh files to use LF line endings, even when cloned on Windows with core.autocrlf=true.
  • Without this, shell scripts checked out with CRLF line endings fail to execute on Unix-like systems.

Test plan

  • Clone the repo on Windows with core.autocrlf=true and verify .sh files have LF endings
  • Verify existing .sh files are normalized on next checkout

Prevents CRLF conversion on Windows when users have core.autocrlf=true
or download ZIP archives from releases. Ensures shell scripts remain
executable on Unix-like systems regardless of checkout environment.

Fixes mholtkamp#68
@kimjune01
kimjune01 marked this pull request as draft May 14, 2026 01:39
@kimjune01
kimjune01 marked this pull request as ready for review May 18, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shader compiler linux script appears to have DOS line breaks

1 participant