fix(git): properly deal with failed clones. Fixes #571

This commit is contained in:
Folke Lemaitre 2023-02-28 11:51:16 +01:00
parent 5af93806aa
commit 77223786aa
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 22 additions and 0 deletions

View file

@ -188,6 +188,8 @@ function M.setup(opts)
M.options.lockfile = Util.norm(M.options.lockfile)
M.options.readme.root = Util.norm(M.options.readme.root)
vim.fn.mkdir(M.options.root, "p")
if M.options.performance.reset_packpath then
vim.go.packpath = vim.env.VIMRUNTIME
end