mirror of https://github.com/folke/lazy.nvim.git
fix(git): only mark a plugin as dirty if an update changed the commit HEAD. Fixes #62
This commit is contained in:
parent
a939243639
commit
bbace14dc9
|
@ -192,8 +192,10 @@ M.checkout = {
|
||||||
from = info.commit,
|
from = info.commit,
|
||||||
to = new_info.commit,
|
to = new_info.commit,
|
||||||
}
|
}
|
||||||
|
if self.plugin._.updated.from ~= self.plugin._.updated.to then
|
||||||
|
self.plugin._.dirty = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
self.plugin._.dirty = true
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue