From 3e143c6017ba3c17dd249492cc86e0d2f2750229 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 2 Dec 2022 11:24:23 +0100 Subject: [PATCH] fix(fs): dont set cloned=true if symlink already existed --- lua/lazy/manage/task/fs.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/lazy/manage/task/fs.lua b/lua/lazy/manage/task/fs.lua index b8097be..47659d9 100644 --- a/lua/lazy/manage/task/fs.lua +++ b/lua/lazy/manage/task/fs.lua @@ -35,10 +35,8 @@ M.symlink = { run = function(self) local stat = vim.loop.fs_lstat(self.plugin.dir) if stat then - assert(stat.type == "link") if vim.loop.fs_realpath(self.plugin.uri) == vim.loop.fs_realpath(self.plugin.dir) then self.plugin._.installed = true - self.plugin._.cloned = true return else vim.loop.fs_unlink(self.plugin.dir)