summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/clone.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/devel/git/clone.lua')
-rw-r--r--xmake/modules/devel/git/clone.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua
index 534ae8ac3..f821b8b24 100644
--- a/xmake/modules/devel/git/clone.lua
+++ b/xmake/modules/devel/git/clone.lua
@@ -77,6 +77,12 @@ function main(url, opt)
table.insert(argv, "core.longpaths=true")
end
+ -- set fsmonitor
+ if opt.fsmonitor ~= nil then
+ table.insert(argv, "-c")
+ table.insert(argv, "core.fsmonitor=" .. tostring(opt.fsmonitor))
+ end
+
-- set outputdir
if opt.outputdir then
table.insert(argv, path.translate(opt.outputdir))