summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/clone.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-27 00:38:18 +0800
committerruki <[email protected]>2019-06-26 21:51:08 +0800
commit78aff8d5199448d604c8e9456063f9550d00c6b6 (patch)
tree3d0c6a08ae93caf1c0cb6bf6fd9e4001f6800de6 /xmake/modules/devel/git/clone.lua
parent6b6fdf451392f5519ff8b8c99bb5df0692c18b36 (diff)
fix xmake update
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
-rw-r--r--xmake/modules/devel/git/clone.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua
index 75a652b1d..4a77abbf5 100644
--- a/xmake/modules/devel/git/clone.lua
+++ b/xmake/modules/devel/git/clone.lua
@@ -60,6 +60,11 @@ function main(url, opt)
table.insert(argv, ifelse(type(opt.depth) == "number", tostring(opt.depth), opt.depth))
end
+ -- recursive?
+ if opt.recursive then
+ table.insert(argv, "--recursive")
+ end
+
-- set outputdir
if opt.outputdir then
table.insert(argv, path.translate(opt.outputdir))