mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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
|
else
|
||||||
return {
|
return {
|
||||||
cmd = 'git',
|
{
|
||||||
info = 'Downloading...',
|
cmd = 'git',
|
||||||
err = 'Error during download, please verify your internet connection',
|
info = 'Downloading...',
|
||||||
opts = {
|
err = 'Error during download, please verify your internet connection',
|
||||||
args = {
|
opts = {
|
||||||
'clone',
|
args = {
|
||||||
'--single-branch',
|
'clone',
|
||||||
'--branch', repo.branch or 'master',
|
'--single-branch',
|
||||||
'--depth', '1',
|
'--branch', repo.branch or 'master',
|
||||||
repo.url,
|
'--depth', '1',
|
||||||
project_name
|
repo.url,
|
||||||
|
project_name
|
||||||
|
},
|
||||||
|
cwd = cache_folder,
|
||||||
},
|
},
|
||||||
cwd = cache_folder,
|
}
|
||||||
},
|
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue