From d64218be1ce1d9df9a25bc19c4cac3aace658d90 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Wed, 1 Jan 2025 22:16:40 +0000 Subject: xmake update: clone with shallow submodules, too This signficantly cuts down on the amount of data uselessly fetched: without, the resulting .git is at present around 69 MB, while with, it's under 10 MB. --- xmake/actions/update/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index f97df2291..651047e6e 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -484,7 +484,7 @@ function main() http.download(url, installerfile) end else - git.clone(url, {depth = 1, recurse_submodules = not script_only, branch = version, outputdir = sourcedir}) + git.clone(url, {depth = 1, shallow_submodules = true, recurse_submodules = not script_only, branch = version, outputdir = sourcedir}) end return true end, -- cgit v1.3.1