mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 16:30:02 -04:00
feat(parsers): add possibility to install from other branches
More and more Github repos are switching to "main" branch. Example: `tree-sitter-wasm`
This commit is contained in:
parent
58ec0bd7ef
commit
0643fa3003
1 changed files with 8 additions and 1 deletions
|
|
@ -147,7 +147,14 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync)
|
||||||
info = 'Downloading...',
|
info = 'Downloading...',
|
||||||
err = 'Error during download, please verify your internet connection',
|
err = 'Error during download, please verify your internet connection',
|
||||||
opts = {
|
opts = {
|
||||||
args = { 'clone', '--single-branch', '--branch', 'master', '--depth', '1', repo.url, project_name },
|
args = {
|
||||||
|
'clone',
|
||||||
|
'--single-branch',
|
||||||
|
'--branch', repo.branch or 'master',
|
||||||
|
'--depth', '1',
|
||||||
|
repo.url,
|
||||||
|
project_name
|
||||||
|
},
|
||||||
cwd = cache_folder,
|
cwd = cache_folder,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue