fix git error

This commit is contained in:
kiyan42
2020-06-01 18:13:12 +02:00
parent 0d77ba683d
commit 69880f2e40

View File

@@ -43,7 +43,7 @@ end
local function create_root(cwd) local function create_root(cwd)
local git_root = vim.fn.system('cd '..cwd..' && git rev-parse --show-toplevel') local git_root = vim.fn.system('cd '..cwd..' && git rev-parse --show-toplevel')
if not git_root or #git_root == 0 or git_root:match('fatal: not a git repository') then if not git_root or #git_root == 0 or git_root:match('fatal') then
roots[cwd] = not_git roots[cwd] = not_git
return false return false
end end