diff options
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 4 |
1 files 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 |
