mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
enforce eol normalization in gitattributes
This commit is contained in:
parent
f61b6c0359
commit
5e602c553f
3 changed files with 1 additions and 18 deletions
3
.gitattributes
vendored
3
.gitattributes
vendored
|
@ -1,2 +1 @@
|
|||
*.ftl eol=lf
|
||||
*.sh eol=lf
|
||||
* text=auto eol=lf
|
||||
|
|
3
.github/workflows/checks.yml
vendored
3
.github/workflows/checks.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue