diff options
| author | Opportunity <[email protected]> | 2020-01-20 22:23:44 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-01-20 22:23:44 +0800 |
| commit | a19f3f194a4d581eb27ea9267b7f6b495345b33c (patch) | |
| tree | dd7a67d6de1d62a9f653138f5cacee88e5fee13b | |
| parent | 08d00484b84526bf8b20f8ff9016ad2c0fc851ae (diff) | |
use shallow_submodules
| -rw-r--r-- | xmake/actions/update/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 63e650abd..738624ad3 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -349,11 +349,11 @@ function main() os.mkdir(sourcedir) http.download(url, path.join(sourcedir, win_installer_name)) else - git.clone(url, {depth = 1, recursive = not script_only, branch = version, outputdir = sourcedir}) + git.clone(url, {depth = 1, recurse_submodules = not script_only, shallow_submodules = true, branch = version, outputdir = sourcedir}) end return true end, - catch + catch { function (errors) vprint(errors) |
