diff options
| author | ruki <[email protected]> | 2021-04-01 22:20:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-04-01 22:20:35 +0800 |
| commit | a9f0f90f5c7db068cdce11b5cc9f8a0ddb494f42 (patch) | |
| tree | 734e588b5ae3ecd050cd5cc976f36320754d0fe1 /xmake/modules/devel/git/clone.lua | |
| parent | 2ff98566ce46f45b36da9f58e3da4def548814f8 (diff) | |
enable longpaths
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
| -rw-r--r-- | xmake/modules/devel/git/clone.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua index 876a2f867..da42e33e5 100644 --- a/xmake/modules/devel/git/clone.lua +++ b/xmake/modules/devel/git/clone.lua @@ -33,7 +33,7 @@ import("net.proxy") -- import("devel.git") -- -- git.clone("[email protected]:xmake-io/xmake.git") --- git.clone("[email protected]:xmake-io/xmake.git", {depth = 1, branch = "master", outputdir = "/tmp/xmake"}) +-- git.clone("[email protected]:xmake-io/xmake.git", {depth = 1, branch = "master", outputdir = "/tmp/xmake", longpaths = true}) -- -- @endcode -- @@ -71,6 +71,12 @@ function main(url, opt) table.insert(argv, "--shallow-submodules") end + -- use longpaths, we need it on windows + if opt.longpaths then + table.insert(argv, "-c") + table.insert(argv, "core.longpaths=true") + end + -- set outputdir if opt.outputdir then table.insert(argv, path.translate(opt.outputdir)) |
