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.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/devel/git/clone.lua b/xmake/modules/devel/git/clone.lua
index f821b8b24..58f43462d 100644
--- a/xmake/modules/devel/git/clone.lua
+++ b/xmake/modules/devel/git/clone.lua
@@ -78,9 +78,12 @@ function main(url, opt)
end
-- set fsmonitor
- if opt.fsmonitor ~= nil then
+ if opt.fsmonitor then
table.insert(argv, "-c")
- table.insert(argv, "core.fsmonitor=" .. tostring(opt.fsmonitor))
+ table.insert(argv, "core.fsmonitor=true")
+ else
+ table.insert(argv, "-c")
+ table.insert(argv, "core.fsmonitor=false")
end
-- set outputdir