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 = {
args = {
'clone',
'--single-branch',
'--branch', repo.branch or 'master',
repo.url,
project_name
},
@ -199,7 +197,7 @@ function M.select_download_commands(repo, project_name, cache_folder, revision)
err = 'Error while checking out revision',
opts = {
args = {
'checkout', revision
'checkout', revision,
},
cwd = git_folder
}