diff --git a/lua/lazy/manage/task/git.lua b/lua/lazy/manage/task/git.lua index e058973..502d7be 100644 --- a/lua/lazy/manage/task/git.lua +++ b/lua/lazy/manage/task/git.lua @@ -192,8 +192,10 @@ M.checkout = { from = info.commit, to = new_info.commit, } + if self.plugin._.updated.from ~= self.plugin._.updated.to then + self.plugin._.dirty = true + end end - self.plugin._.dirty = true end end, })