summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-02 21:49:36 +0800
committerGitHub <[email protected]>2025-01-02 21:49:36 +0800
commitb16a5777a69bf2cd7899670fbc10d71fb2353ff3 (patch)
tree649dae4ad4b20158d06902aa8688b042576d4019
parentb1c10bb87af68fd7c6390b4da8f8f415b7758735 (diff)
parentd64218be1ce1d9df9a25bc19c4cac3aace658d90 (diff)
Merge pull request #6029 from nwf/202501-update_shallow
xmake update: clone with shallow submodules, too
-rw-r--r--xmake/actions/update/main.lua2
1 files changed, 1 insertions, 1 deletions
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,