From bbace14dc96cd2379aa3f49446ba35a1ad5bfdfa Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 21 Dec 2022 14:45:32 +0100 Subject: [PATCH] fix(git): only mark a plugin as dirty if an update changed the commit HEAD. Fixes #62 --- lua/lazy/manage/task/git.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, })