mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 13:56:05 +00:00

committed by
GitHub

parent
4598305e0b
commit
8e740db70c
@@ -144,7 +144,7 @@ end
|
|||||||
--- @param url string
|
--- @param url string
|
||||||
--- @param path string
|
--- @param path string
|
||||||
local function git_clone(url, path)
|
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
|
if vim.startswith(url, 'file://') then
|
||||||
cmd[#cmd + 1] = '--no-hardlinks'
|
cmd[#cmd + 1] = '--no-hardlinks'
|
||||||
|
@@ -583,6 +583,16 @@ describe('vim.pack', function()
|
|||||||
eq(false, vim.tbl_contains(rtp, after_dir))
|
eq(false, vim.tbl_contains(rtp, after_dir))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('does not checkout on bad `version`', function()
|
||||||
|
local err = pcall_err(exec_lua, function()
|
||||||
|
vim.pack.add({ { src = repos_src.basic, version = 'not-exist' } })
|
||||||
|
end)
|
||||||
|
matches('`not%-exist` is not a branch/tag/commit', err)
|
||||||
|
local plug_path = pack_get_plug_path('basic')
|
||||||
|
local entries = vim.iter(vim.fs.dir(plug_path)):totable()
|
||||||
|
eq({ { '.git', 'directory' } }, entries)
|
||||||
|
end)
|
||||||
|
|
||||||
it('can install from the Internet', function()
|
it('can install from the Internet', function()
|
||||||
t.skip(skip_integ, 'NVIM_TEST_INTEG not set: skipping network integration test')
|
t.skip(skip_integ, 'NVIM_TEST_INTEG not set: skipping network integration test')
|
||||||
exec_lua(function()
|
exec_lua(function()
|
||||||
|
Reference in New Issue
Block a user