We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78857db commit 29d9d52Copy full SHA for 29d9d52
1 file changed
lua/telescope/builtin/__git.lua
@@ -458,11 +458,7 @@ local try_worktrees = function(opts)
458
end
459
460
local current_path_toplevel = function()
461
- local gitdir = vim.fn.finddir(".git", vim.fn.expand "%:p" .. ";")
462
- if gitdir == "" then
463
- return nil
464
- end
465
- return Path:new(gitdir):parent():absolute()
+ return vim.fs.root(0, ".git")
466
467
468
local set_opts_cwd = function(opts)
0 commit comments