remove single-branch and branch arguments on git call

This commit is contained in:
Daniel Bendel 2021-04-15 10:15:47 +02:00 committed by Thomas Vigouroux
parent 5ff8535bb4
commit 06af7daf18

View file

@ -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
} }