From 5030bcbc98b252dcba7726bb531c3468078858fe Mon Sep 17 00:00:00 2001 From: stay <344233108@qq.com> Date: Sun, 6 Apr 2025 11:18:47 +0800 Subject: fix git clone failure in older version --- xmake/modules/devel/git/clone.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1