mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(git): properly compare git commits with short refs
This commit is contained in:
parent
3ad6d95a30
commit
dc9c92a9b3
3 changed files with 11 additions and 3 deletions
|
@ -22,7 +22,7 @@ function M.fast_check(opts)
|
|||
plugin._.updates = nil
|
||||
local info = Git.info(plugin.dir)
|
||||
local ok, target = pcall(Git.get_target, plugin)
|
||||
if ok and info and target and info.commit ~= target.commit then
|
||||
if ok and info and target and not Git.eq(info, target) then
|
||||
plugin._.updates = { from = info, to = target }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue