diff options
| author | stay <[email protected]> | 2025-04-06 11:11:39 +0800 |
|---|---|---|
| committer | stay <[email protected]> | 2025-04-06 11:11:39 +0800 |
| commit | b96802aec0d0838fc954abd8d872de727e41e551 (patch) | |
| tree | cef16ea8ebea211141760419a7005edb4e301e2d | |
| parent | 74c55526d4c7b4c22ea37a61406969cbb6b148bd (diff) | |
Revert "fix git clone failure in older version"
This reverts commit 74c55526d4c7b4c22ea37a61406969cbb6b148bd.
| -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 d26b621db..cb65183ad 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 = git.clone.can_treeless(), checkout = not git.clone.can_treeless(), longpaths = longpaths, outputdir = packagedir}) + git.clone(url, {treeless = true, checkout = false, longpaths = longpaths, outputdir = packagedir}) -- attempt to checkout the given version git.checkout(revision, {repodir = packagedir, includes = opt.url_includes}) |
