diff options
| author | stay <[email protected]> | 2025-04-06 11:18:47 +0800 |
|---|---|---|
| committer | stay <[email protected]> | 2025-04-06 11:18:47 +0800 |
| commit | 5030bcbc98b252dcba7726bb531c3468078858fe (patch) | |
| tree | 6426569eafd45e71a8cbee4aa6d7a4211da97202 /xmake/modules/devel/git/clone.lua | |
| parent | b96802aec0d0838fc954abd8d872de727e41e551 (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.lua | 2 |
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 |
