Files
example-voting-app/.gitattributes
Julien Adam 574e6a7582 Adding a git attributes file to avoid EOL issues
CRLF in .sh healthcheck scripts causes failures on Windows Docker
2023-04-06 14:31:20 +02:00

13 lines
494 B
Plaintext

# Set default behavior to automatically normalize line endings.
* text=auto
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
# in Windows via a file share from Linux, the scripts will work.
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.{ics,[iI][cC][sS]} text eol=crlf
# Force bash scripts to always use LF line endings so that if a repo is accessed
# in Unix via a file share from Windows, the scripts will work.
*.sh text eol=lf