From 2db1266629941c424b9a758221e8293e09fb7f32 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 31 Aug 2023 00:03:14 +0800 Subject: improve git shallow clone #4151 --- xmake/modules/private/action/require/impl/actions/download.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index c498dea82..06ebae308 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -95,8 +95,8 @@ function _checkout(package, url, sourcedir, opt) branch = nil end - -- only shadow clone this branch - git.clone(url, {depth = 1, recursive = true, longpaths = longpaths, branch = branch, outputdir = packagedir}) + -- only shallow clone this branch + git.clone(url, {depth = 1, recursive = true, shallow_submodules = true, longpaths = longpaths, branch = branch, outputdir = packagedir}) -- download package from revision or tag? else -- cgit v1.3.1