Fix: check if opts.cwd is a git directory, not opts (#252)

This commit is contained in:
YIQUN
2020-11-17 15:21:58 +08:00
committed by GitHub
parent 749c86557e
commit 5863e49773

View File

@@ -153,7 +153,7 @@ local set_opts_cwd = function(opts)
if opts.cwd then
opts.cwd = vim.fn.expand(opts.cwd)
is_git_dir(opts)
is_git_dir(opts.cwd)
else
is_git_dir(vim.fn.expand('%:p:h'))
--- Find root of git directory and remove trailing newline characters