enforce eol normalization in gitattributes

This commit is contained in:
Damien Elmes 2020-11-01 15:24:25 +10:00
parent f61b6c0359
commit 5e602c553f
3 changed files with 1 additions and 18 deletions

3
.gitattributes vendored
View file

@ -1,2 +1 @@
*.ftl eol=lf
*.sh eol=lf
* text=auto eol=lf

View file

@ -111,9 +111,6 @@ jobs:
fail-fast: false
steps:
- run: git config --global core.autocrlf false
if: matrix.os == 'windows-latest'
- uses: actions/checkout@v2
- name: Configure Linux environment variables

View file

@ -184,11 +184,6 @@ recommended to follow these instructions step-by-step.
- install Git and Git Bash (this delivers curl too)
- add git/usr/bin to your System PATH before cygwin/bin folder, mentioned above.
- run:
- git config --global core.autocrlf
- make a note of the result (referred to as [yourLineEndingsValue] later in these notes)
- if the [yourLineEndingsValue] is not 'input', run (to preserve Anki's Unix line endings):
- git config --global core.autocrlf input
- run:
- cargo install ripgrep
@ -228,14 +223,6 @@ recommended to follow these instructions step-by-step.
- open PyCharm Terminal (Git Bash)
- set your local Anki project to preserve unix line endings:
- git config --local core.autocrlf input
- if [yourLineEndingsValue] was not 'input', revert global line endings:
- git config --global core.autocrlf [yourLineEndingsValue]
- e.g. (most likely):
- git config --global core.autocrlf true
- ensure your virtual environment is set up as you like it to be
- if you don't set the virtual environment to pyenv (Anki's virtual environment folder) don't forget to add the