diff options
| author | Opportunity <[email protected]> | 2020-01-20 01:54:53 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-01-20 01:54:53 +0800 |
| commit | aa0cd8e58d2effab424214d12ab2122ff39a0f4a (patch) | |
| tree | 3f1ab9b5d18d4b56c982b9431cff09dcc120230f | |
| parent | de7f1c8864bd4c186106b57b796106d39a4fe49b (diff) | |
Update main.lua
| -rw-r--r-- | xmake/actions/update/main.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/xmake/actions/update/main.lua b/xmake/actions/update/main.lua index bda4fa3a5..c8e95f5c3 100644 --- a/xmake/actions/update/main.lua +++ b/xmake/actions/update/main.lua @@ -320,15 +320,7 @@ function main() os.mkdir(sourcedir) http.download(url, path.join(sourcedir, win_installer_name)) else - if version:find('.', 1, true) then - git.clone(url, {outputdir = sourcedir}) - git.checkout(version, {repodir = sourcedir}) - if not script_only then - submodule.update({repodir = sourcedir, init = true, recursive = true}) - end - else - git.clone(url, {depth = 1, recursive = not script_only, branch = version, outputdir = sourcedir}) - end + git.clone(url, {depth = 1, recursive = not script_only, branch = version, outputdir = sourcedir}) end return true end, |
