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 else
return { return {
cmd = 'git', {
info = 'Downloading...', cmd = 'git',
err = 'Error during download, please verify your internet connection', info = 'Downloading...',
opts = { err = 'Error during download, please verify your internet connection',
args = { opts = {
'clone', args = {
'--single-branch', 'clone',
'--branch', repo.branch or 'master', '--single-branch',
'--depth', '1', '--branch', repo.branch or 'master',
repo.url, '--depth', '1',
project_name repo.url,
project_name
},
cwd = cache_folder,
}, },
cwd = cache_folder, }
},
} }
end end
end end