Fixes #738 by changing the git config autocrlf test to check for what… (#742)

Fixes #738 by changing the git config autocrlf test to check for what we do not want to see "false".

Instead of trying to convert the output of git config autocrlf to binary, which will not always work as "input" is also a valid value in addition to true and false, we check for the value false and exit if it is found.
This commit is contained in:
Frederick Henderson 2020-03-21 21:15:46 +01:00 committed by GitHub
parent 2ce0d8ae1d
commit 5b9c4b4b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ fish install --path=~/.local/share/omf --config=~/.config/omf
You can verify the integrity of the downloaded installer by verifying the script against [this checksum](bin/install.sha256):
```
bbace7ef16956d87fd40bff91cd1992a90621e7931ac3055f16b7f6d679e8fff install
bb1f4025934600ea6feef2ec11660e17e2b6449c5a23c033860aed712ad328c9 install
```
You can also install Oh My Fish with Git or with an offline source tarball downloaded from the [releases page][releases]:

View File

@ -481,7 +481,7 @@ function sane_environment_check
end
debug "Verifying Git autocrlf is not enabled"
if test (cmd git config --bool core.autocrlf; or echo false) = true
if test (cmd git config core.autocrlf; or echo false) = true
abort "Please disable core.autocrlf in your Git configuration."
end
end

View File

@ -1 +1 @@
bbace7ef16956d87fd40bff91cd1992a90621e7931ac3055f16b7f6d679e8fff install
bb1f4025934600ea6feef2ec11660e17e2b6449c5a23c033860aed712ad328c9 install