mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -04:00
Fix: fallback git-installation (list of commands is expected)
This commit is contained in:
parent
97d5329d9f
commit
9f5237b6c5
1 changed files with 15 additions and 13 deletions
|
|
@ -224,20 +224,22 @@ local function select_download_commands(repo, project_name, cache_folder, revisi
|
|||
}
|
||||
else
|
||||
return {
|
||||
cmd = 'git',
|
||||
info = 'Downloading...',
|
||||
err = 'Error during download, please verify your internet connection',
|
||||
opts = {
|
||||
args = {
|
||||
'clone',
|
||||
'--single-branch',
|
||||
'--branch', repo.branch or 'master',
|
||||
'--depth', '1',
|
||||
repo.url,
|
||||
project_name
|
||||
{
|
||||
cmd = 'git',
|
||||
info = 'Downloading...',
|
||||
err = 'Error during download, please verify your internet connection',
|
||||
opts = {
|
||||
args = {
|
||||
'clone',
|
||||
'--single-branch',
|
||||
'--branch', repo.branch or 'master',
|
||||
'--depth', '1',
|
||||
repo.url,
|
||||
project_name
|
||||
},
|
||||
cwd = cache_folder,
|
||||
},
|
||||
cwd = cache_folder,
|
||||
},
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue