mirror of https://github.com/folke/lazy.nvim.git
fix: when just cloned, never commit lock
This commit is contained in:
parent
7328e290ba
commit
32fa5f8441
|
@ -130,7 +130,9 @@ M.checkout = {
|
|||
local info = assert(Git.info(self.plugin.dir))
|
||||
local target = assert(Git.get_target(self.plugin))
|
||||
|
||||
if self.plugin.lock then
|
||||
-- if the plugin is locked and we did not just clone it,
|
||||
-- then don't update
|
||||
if self.plugin.lock and not self.plugin._.cloned then
|
||||
target = info
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue