Skip to content

Commit

Permalink
chore(git): Set api resources as always lf in git
Browse files Browse the repository at this point in the history
Though it's convenient for windows devs to have autocrlf set, the files in api/opentrons/resources
_must_ always have lf, including locally, since they are interpreted by bash on the robot. Setting
text eol=lf here is like setting core.autocrlf to input.

Closes #2305
  • Loading branch information
sfoster1 committed Sep 18, 2018
1 parent 1e3b27e commit 8b5abfc
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,2 +1,5 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# But the scripts in the api resources directory must always have lf
# including in the working tree in case the user does a push-api
./api/opentrons/resources/** text eol=lf

0 comments on commit 8b5abfc

Please sign in to comment.