diff options
| author | stay <[email protected]> | 2025-04-06 08:47:44 +0800 |
|---|---|---|
| committer | stay <[email protected]> | 2025-04-06 08:47:44 +0800 |
| commit | 74c55526d4c7b4c22ea37a61406969cbb6b148bd (patch) | |
| tree | 17bdbe13b18c355605d8e71cbc58b0b641c31c4b | |
| parent | cd6ace825c1401c7a17929fea56c7771dfc807ba (diff) | |
fix git clone failure in older version
| -rw-r--r-- | xmake/modules/private/action/require/impl/actions/download.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/actions/download.lua b/xmake/modules/private/action/require/impl/actions/download.lua index cb65183ad..d26b621db 100644 --- a/xmake/modules/private/action/require/impl/actions/download.lua +++ b/xmake/modules/private/action/require/impl/actions/download.lua @@ -122,7 +122,7 @@ function _checkout(package, url, sourcedir, opt) -- clone whole history and tags -- @see https://github.com/xmake-io/xmake/issues/5507 - git.clone(url, {treeless = true, checkout = false, longpaths = longpaths, outputdir = packagedir}) + git.clone(url, {treeless = git.clone.can_treeless(), checkout = not git.clone.can_treeless(), longpaths = longpaths, outputdir = packagedir}) -- attempt to checkout the given version git.checkout(revision, {repodir = packagedir, includes = opt.url_includes}) |
