fix(git): follow symlinks when resolving a buffer's repo

This commit is contained in:
2026-04-30 19:37:18 +02:00
parent af7e187aa9
commit 9568fc63a3
8 changed files with 20 additions and 18 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ local M = {}
---@param opts { amend: boolean? }?
function M.commit(opts)
local amend = opts and opts.amend or false
local _, worktree = repo.resolve_cwd()
local _, worktree = repo.current_repo()
if not worktree then
util.warning("not in a git repository")
return