mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-16 14:27:01 +00:00
docker: Force Unix line endings on docker/ files
When using git on Windows, git may try to "fix" line endings to CRLF. Then, when building the Docker image, the files copied can end up having the wrong line ending, which causes scripts to fail to run. This patch fixes the problem by using .gitattributes to indicate to git which line ending to use for the files in the docker/ directory. https://github.com/albertito/chasquid/pull/66 Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Adjusted commit message, extended comment on .gitattributes.
This commit is contained in:
committed by
Alberto Bertogli
parent
377cd2fe65
commit
2b9d1faabf
5
.gitattributes
vendored
Normal file
5
.gitattributes
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Force Unix style line endings for files that will be copied into the Docker
|
||||||
|
# image. This is helpful when using git on Windows, as it prevents the wrong
|
||||||
|
# newlines to be copied inside the Docker image, which can cause scripts to
|
||||||
|
# fail to run.
|
||||||
|
docker/* text eol=lf
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -6,6 +6,7 @@
|
|||||||
# Exceptions to the rules above: files we care about that would otherwise be
|
# Exceptions to the rules above: files we care about that would otherwise be
|
||||||
# excluded.
|
# excluded.
|
||||||
!.gitignore
|
!.gitignore
|
||||||
|
!.gitattributes
|
||||||
!.clang-format
|
!.clang-format
|
||||||
!.github/
|
!.github/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user