Fix: fallback git-installation (list of commands is expected)

This commit is contained in:
Stephan Seitz 2020-10-04 21:30:47 +02:00 committed by Stephan Seitz
parent 97d5329d9f
commit 9f5237b6c5

View file

@ -224,20 +224,22 @@ local function select_download_commands(repo, project_name, cache_folder, revisi
}
else
return {
cmd = 'git',
info = 'Downloading...',
err = 'Error during download, please verify your internet connection',
opts = {
args = {
'clone',
'--single-branch',
'--branch', repo.branch or 'master',
'--depth', '1',
repo.url,
project_name
{
cmd = 'git',
info = 'Downloading...',
err = 'Error during download, please verify your internet connection',
opts = {
args = {
'clone',
'--single-branch',
'--branch', repo.branch or 'master',
'--depth', '1',
repo.url,
project_name
},
cwd = cache_folder,
},
cwd = cache_folder,
},
}
}
end
end