Skip to content

Commit

Permalink
Checkout python scripts with LF to keep shebangs intact (#3051)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dcodeIO authored Aug 17, 2020
1 parent 0fdbb1d commit 825c6a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.py text eol=lf
*.sh text eol=lf
test/binaryen.js/*.txt text eol=lf

0 comments on commit 825c6a8

Please sign in to comment.