diff options
| author | YIQUN <yiqunding@zju.edu.cn> | 2020-11-17 15:21:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-17 08:21:58 +0100 |
| commit | 5863e49773c51b47fdaa8456606900a69764490a (patch) | |
| tree | e81b49d2e5ed41bac4ee36a670cf818273dc865a /lua/telescope/builtin/git.lua | |
| parent | 749c86557e3eb8d89bc93098d5a5ca089610278f (diff) | |
Fix: check if opts.cwd is a git directory, not opts (#252)
Diffstat (limited to 'lua/telescope/builtin/git.lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index 0f90403..a5fdb82 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -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 |
