diff options
| author | ruki <[email protected]> | 2019-06-27 00:42:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-26 22:15:09 +0800 |
| commit | 9f73278f8f7631bc53daba27ffdf84d96068c562 (patch) | |
| tree | 30fa1f498f2708a559440854fafc04295f13b5dd /xmake | |
| parent | 78aff8d5199448d604c8e9456063f9550d00c6b6 (diff) | |
fix get.sh and improve update
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/actions/update/main.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index 0de44628d..b30ba0799 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -320,9 +320,11 @@ function main() if version:find('.', 1, true) then git.clone(url, {outputdir = sourcedir}) git.checkout(version, {repodir = sourcedir}) - submodule.update({repodir = sourcedir, init = true, recursive = true}) + if not script_only then + submodule.update({repodir = sourcedir, init = true, recursive = true}) + end else - git.clone(url, {depth = 1, recursive = true, branch = version, outputdir = sourcedir}) + git.clone(url, {depth = 1, recursive = not script_only, branch = version, outputdir = sourcedir}) end end return true |
