mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
remove single-branch and branch arguments on git call
This commit is contained in:
parent
5ff8535bb4
commit
06af7daf18
1 changed files with 1 additions and 3 deletions
|
|
@ -185,8 +185,6 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
|
||||||
opts = {
|
opts = {
|
||||||
args = {
|
args = {
|
||||||
'clone',
|
'clone',
|
||||||
'--single-branch',
|
|
||||||
'--branch', repo.branch or 'master',
|
|
||||||
repo.url,
|
repo.url,
|
||||||
project_name
|
project_name
|
||||||
},
|
},
|
||||||
|
|
@ -199,7 +197,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
|
||||||
err = 'Error while checking out revision',
|
err = 'Error while checking out revision',
|
||||||
opts = {
|
opts = {
|
||||||
args = {
|
args = {
|
||||||
'checkout', revision
|
'checkout', revision,
|
||||||
},
|
},
|
||||||
cwd = git_folder
|
cwd = git_folder
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue