diff options
| author | ruki <[email protected]> | 2024-08-27 00:36:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-08-27 00:36:07 +0800 |
| commit | 7003c61415396660311d9d830e4ca3b103551470 (patch) | |
| tree | 851b07b6f16f6ca8174e58b21583d7ced241a5af /xmake/modules/devel/git/clone.lua | |
| parent | 5aeee42d72b7c2289a0179821db04c36751fc38e (diff) | |
improve treeless for git.clone
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
| -rw-r--r-- | xmake/modules/devel/git/clone.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua index cc0b8f841..eceb80714 100644 --- a/xmake/modules/devel/git/clone.lua +++ b/xmake/modules/devel/git/clone.lua @@ -93,6 +93,11 @@ function main(url, opt) table.insert(argv, "--filter=tree:0") end + -- no checkout + if opt.checkout == false then + table.insert(argv, "--no-checkout") + end + -- recursive? if opt.recursive then table.insert(argv, "--recursive") |
