fix(git): follow symlinks when resolving a buffer's repo
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ function M.read_uri(buf)
|
||||
end
|
||||
local rev_str = rev:format()
|
||||
|
||||
local worktree = vim.b[buf].git_worktree or select(2, repo.resolve_cwd())
|
||||
local worktree = vim.b[buf].git_worktree or select(2, repo.current_repo())
|
||||
if not worktree then
|
||||
util.error("git BufReadCmd %s: cannot resolve worktree", name)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user