mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2025-02-15 19:56:52 +00:00
fix(yadm): correct ls-files check
`not` has higher precedence than `~=`, so it was actually `(not #git_command(..)) ~= 0`. To fix it, we can simplify the double negation as just a `==`.
This commit is contained in:
parent
7e38f07cab
commit
035da036e6
@ -340,7 +340,7 @@ function Repo:try_yadm(dir, gitdir, toplevel)
|
||||
return
|
||||
end
|
||||
|
||||
if not #git_command({ 'ls-files', dir }, { command = 'yadm' }) ~= 0 then
|
||||
if #git_command({ 'ls-files', dir }, { command = 'yadm' }) == 0 then
|
||||
return
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user