Skip to content

Commit 094a432

Browse files
committed
fix(diffview): Use correct git path
1 parent 4a57913 commit 094a432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neogit/integrations/diffview.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ local function get_local_diff_view(section_name, item_name, opts)
9090
local current_file_path
9191
local current_buf_name = vim.api.nvim_buf_get_name(0)
9292
if current_buf_name and current_buf_name ~= "" then
93-
current_file_path = current_buf_name:gsub(view.git_root .. "/", "")
93+
current_file_path = current_buf_name:gsub(git.repo.worktree_root .. "/", "")
9494
end
9595

9696
Watcher.instance():dispatch_refresh()

0 commit comments

Comments
 (0)