Skip to content

Commit bbace14

Browse files
committed
fix(git): only mark a plugin as dirty if an update changed the commit HEAD. Fixes #62
1 parent a939243 commit bbace14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/lazy/manage/task/git.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,10 @@ M.checkout = {
192192
from = info.commit,
193193
to = new_info.commit,
194194
}
195+
if self.plugin._.updated.from ~= self.plugin._.updated.to then
196+
self.plugin._.dirty = true
197+
end
195198
end
196-
self.plugin._.dirty = true
197199
end
198200
end,
199201
})

0 commit comments

Comments
 (0)