From a19f3f194a4d581eb27ea9267b7f6b495345b33c Mon Sep 17 00:00:00 2001 From: Opportunity Date: Mon, 20 Jan 2020 22:23:44 +0800 Subject: use shallow_submodules --- xmake/actions/update/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 63e650abd..738624ad3 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -349,11 +349,11 @@ function main() os.mkdir(sourcedir) http.download(url, path.join(sourcedir, win_installer_name)) else - git.clone(url, {depth = 1, recursive = not script_only, branch = version, outputdir = sourcedir}) + git.clone(url, {depth = 1, recurse_submodules = not script_only, shallow_submodules = true, branch = version, outputdir = sourcedir}) end return true end, - catch + catch { function (errors) vprint(errors) -- cgit v1.3.1