summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2020-08-18 00:35:35 +0200
committerGitHub <noreply@github.com>2020-08-17 15:35:35 -0700
commit825c6a8f218666e3c0dc190e4ef2c474ce34734c (patch)
tree35c7d564929af163c0d41f9ec32e081e36a7ee67
parent0fdbb1d33810d84bbd9a408b3486bff0d9015989 (diff)
downloadbinaryen-825c6a8f218666e3c0dc190e4ef2c474ce34734c.tar.gz
binaryen-825c6a8f218666e3c0dc190e4ef2c474ce34734c.tar.bz2
binaryen-825c6a8f218666e3c0dc190e4ef2c474ce34734c.zip
Checkout python scripts with LF to keep shebangs intact (#3051)
Python scripts were previously checked out with CRLF line endings by default on Windows (unless configured otherwise globally), leading to problems with the shebang not being correctly recognized when mounted into WSL and trying to run `./thescript.py` without prepending `python3` (just like `*.sh` files and `bash` that have already been addressed). NFC except that it helps in mixed setups.
-rw-r--r--.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index ba181f19d..11500f6f7 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,3 @@
+*.py text eol=lf
*.sh text eol=lf
test/binaryen.js/*.txt text eol=lf