summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/clone.lua
diff options
context:
space:
mode:
authorstay <[email protected]>2025-04-06 11:18:47 +0800
committerstay <[email protected]>2025-04-06 11:18:47 +0800
commit5030bcbc98b252dcba7726bb531c3468078858fe (patch)
tree6426569eafd45e71a8cbee4aa6d7a4211da97202 /xmake/modules/devel/git/clone.lua
parentb96802aec0d0838fc954abd8d872de727e41e551 (diff)
fix git clone failure in older version
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
-rw-r--r--xmake/modules/devel/git/clone.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua
index 018e6fcef..7b7964216 100644
--- a/xmake/modules/devel/git/clone.lua
+++ b/xmake/modules/devel/git/clone.lua
@@ -103,7 +103,7 @@ function main(url, opt)
-- treeless?
-- @see https://github.com/xmake-io/xmake/issues/5507
- if opt.treeless then
+ if opt.treeless and can_treeless() then
table.insert(argv, "--filter=tree:0")
end