From 74513aad0cec3a52f3162b6de0b1b0560083938e Mon Sep 17 00:00:00 2001 From: tinkotvas <34161287+tinkotvas@users.noreply.github.com> Date: Tue, 19 Feb 2019 18:15:22 +0100 Subject: [PATCH] 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. --- .gitattributes | 1 + .gitignore | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..a471a42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf \ No newline at end of file diff --git a/.gitignore b/.gitignore index e86c082..c9808ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ -# hidden files +# hidden files, exluding gitattributes .* +!.gitattributes # data folder /data