diff options
| author | ruki <[email protected]> | 2025-10-08 11:21:03 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-08 11:21:03 +0800 |
| commit | fb0574dea9c1632eb5b4efef7460ab68829666d6 (patch) | |
| tree | becfb58dd7b827ea3895e681d47881c1cd0985d5 /xmake/modules | |
| parent | 859a521e37b08137e8588993ca8c5cc7206673db (diff) | |
| parent | fde70095c345a401f9c7843a8f2c33b2e227a807 (diff) | |
Merge pull request #6901 from SirLynix/patch-21
package download: don't get submodules if disabled
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index 25c9d1b56..02585b70c 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -130,7 +130,8 @@ function _checkout(package, url, sourcedir, opt) -- only shallow clone this tag -- @see https://github.com/xmake-io/xmake/issues/4151 if tag and git.clone.can_clone_tag() then - git.clone(url, {depth = 1, recursive = true, shallow_submodules = true, longpaths = longpaths, branch = tag, outputdir = packagedir}) + local clone_submodules = opt.url_submodules ~= false + git.clone(url, {depth = 1, recursive = clone_submodules, shallow_submodules = clone_submodules, longpaths = longpaths, branch = tag, outputdir = packagedir}) else -- clone whole history and tags |
