Add .gitattributes to use LF line-endings for *.sh files (#11)

This fixes the PostgreSQL setup when using Windows as Docker host. Because git by default will transform all files to Windows line-endings on clone, the files mounted inside the Linux based PostgreSQL container can't be read correctly and the initialisation fails.

Closes #10.
This commit is contained in:
tinkotvas 2019-02-19 18:15:22 +01:00 committed by Orne Brocaar
parent b9178714cc
commit 74513aad0c
2 changed files with 3 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.sh text eol=lf

3
.gitignore vendored
View File

@ -1,5 +1,6 @@
# hidden files # hidden files, exluding gitattributes
.* .*
!.gitattributes
# data folder # data folder
/data /data