Skip to content

Create .gitattributes to force git clone to keep the LF line endings on .sh files#838

Merged
mudler merged 1 commit into
mudler:masterfrom
energynumbers:master
Jul 30, 2023
Merged

Create .gitattributes to force git clone to keep the LF line endings on .sh files#838
mudler merged 1 commit into
mudler:masterfrom
energynumbers:master

Conversation

@energynumbers

Copy link
Copy Markdown
Contributor

This change forces git clone to keep the LF line endings on .sh files

Description

This PR fixes https://www.reddit.com/r/AutoGPT/comments/1438fb6/localai_v1180_release/

where cloning the repository onto a windows machine changes the line-endings of .sh files to CRLF, breaking them.

fixes bug described here

https://www.reddit.com/r/AutoGPT/comments/1438fb6/localai_v1180_release/ 

where cloning repository onto a windows machine changes the line-endings of .sh files to CRLF, breaking them. This change forces git to keep the LF line endings on .sh files
@energynumbers energynumbers changed the title Create .gitattributes to forces git clone to keep the LF line endings on .sh files Create .gitattributes to force git clone to keep the LF line endings on .sh files Jul 30, 2023
@mudler
mudler merged commit 9843adb into mudler:master Jul 30, 2023

@mudler mudler left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

2 participants