fix(vim.pack): skip checkout on bad version #36038

Refs: #36037
This commit is contained in:
Mickaël RAYBAUD-ROIG
2025-10-09 22:40:26 +02:00
committed by GitHub
parent 4598305e0b
commit 8e740db70c
2 changed files with 11 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ end
--- @param url string
--- @param path string
local function git_clone(url, path)
local cmd = { 'clone', '--quiet', '--origin', 'origin' }
local cmd = { 'clone', '--quiet', '--origin', 'origin', '--no-checkout' }
if vim.startswith(url, 'file://') then
cmd[#cmd + 1] = '--no-hardlinks'