diff options
| author | Nathaniel Wesley Filardo <[email protected]> | 2025-01-01 22:16:40 +0000 |
|---|---|---|
| committer | Nathaniel Wesley Filardo <[email protected]> | 2025-01-01 22:19:39 +0000 |
| commit | d64218be1ce1d9df9a25bc19c4cac3aace658d90 (patch) | |
| tree | 8d7fe0c2f5f1b550df414d77b8d4fd0ede01d50e | |
| parent | 686b414c97f5fae095676d06fbf62ddc3d0bb36f (diff) | |
xmake update: clone with shallow submodules, too
This signficantly cuts down on the amount of data uselessly fetched: without,
the resulting .git is at present around 69 MB, while with, it's under 10 MB.
| -rw-r--r-- | xmake/actions/update/main.lua | 2 |
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, |
