Skip to content

Commit

Permalink
Merged PR 291924: Always checkout bash scripts with LF endings
Browse files Browse the repository at this point in the history
When building Linux Docker images on a Windows machine, the bash scripts that get copied to the image have CRLF endings because of our Git settings. This change forces Git to always checkout bash scripts with LF line endings, regardless of the platform's default line endings.
  • Loading branch information
damonbarry committed Jun 20, 2017
1 parent 4544d09 commit 5683667
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Auto detect text files and perform LF normalization
* text=auto

# Declare files that will always have LF line endings on checkout
*.sh text eol=lf

# Binary files to ignore and not modify
*.pfx binary
*.ico binary
Expand Down

0 comments on commit 5683667

Please sign in to comment.