diff options
| author | ruki <[email protected]> | 2025-10-09 07:38:29 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-09 07:38:29 +0800 |
| commit | e4b2bc29c1aca3959e5f08ebc99f7e048b7e2191 (patch) | |
| tree | 439c1280a06a02eb8049189857f16c787d5a065a | |
| parent | 888f5c3b5452b2b8c6c47e89028c4449a238e31f (diff) | |
| parent | 328a2725e706fa55fe66b2ae5afc5cd80cf48fc9 (diff) | |
Merge pull request #6907 from SirLynix/patch-20
package download: don't get submodules if disabled (branch version)
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 5 |
1 files changed, 3 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 02585b70c..df47673a3 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -108,8 +108,9 @@ function _checkout(package, url, sourcedir, opt) branch = nil end - -- only shallow clone this branch - git.clone(url, {depth = 1, recursive = true, shallow_submodules = true, longpaths = longpaths, branch = branch, outputdir = packagedir}) + -- only shallow clone this branch + local clone_submodules = opt.url_submodules ~= false + git.clone(url, {depth = 1, recursive = clone_submodules, shallow_submodules = clone_submodules, longpaths = longpaths, branch = branch, outputdir = packagedir}) -- download package from revision or tag? else |
