Skip to content

Commit

Permalink
fix(git): only mark a plugin as dirty if an update changed the commit…
Browse files Browse the repository at this point in the history
… HEAD. Fixes #62
  • Loading branch information
folke committed Dec 21, 2022
1 parent a939243 commit bbace14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lazy/manage/task/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
Expand Down

0 comments on commit bbace14

Please sign in to comment.