Add .gitattributes: *.sh text eol=lf for Windows clones (#19) #21
7
.gitattributes
vendored
Normal file
7
.gitattributes
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
# Force LF line endings for shell scripts.
|
||||
# Without this, Windows clones (git's core.autocrlf=true default) check out
|
||||
# CRLF and the shebang dies with: /usr/bin/env: 'bash\r': No such file or directory (exit 127)
|
||||
# Keep every *.sh blob byte-clean; existing clones need a forced re-checkout
|
||||
# (rm -f .git/index && git reset --hard HEAD) because git does not rewrite a
|
||||
# file whose blob is unchanged.
|
||||
*.sh text eol=lf
|
||||
Reference in New Issue
Block a user