diff options
| author | ruki <[email protected]> | 2019-09-03 22:38:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-03 09:49:27 +0800 |
| commit | 978bdb3c3e034afc17f29dc3688bd76a0abde801 (patch) | |
| tree | ca3f46ff82920c25f70f0d7b5eb1f3c55b21e364 | |
| parent | 9d474b48292f4b268493af40bfef738ac026396b (diff) | |
improve git clone for require
| -rw-r--r-- | xmake/actions/require/impl/action/download.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/actions/require/impl/action/download.lua b/xmake/actions/require/impl/action/download.lua index 548d25a83..ab586c4bc 100644 --- a/xmake/actions/require/impl/action/download.lua +++ b/xmake/actions/require/impl/action/download.lua @@ -63,13 +63,13 @@ function _checkout(package, url, sourcedir, url_alias) if package:branch() then -- only shadow clone this branch - git.clone(url, {depth = 1, branch = package:branch(), outputdir = packagedir}) + git.clone(url, {depth = 1, recursive = true, branch = package:branch(), outputdir = packagedir}) -- download package from revision or tag? else -- clone whole history and tags - git.clone(url, {outputdir = packagedir}) + git.clone(url, {outputdir = packagedir, recursive = true}) -- attempt to checkout the given version git.checkout(package:revision(url_alias) or package:tag(), {repodir = packagedir}) |
