diff options
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)) |
