summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/pull.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/devel/git/pull.lua')
-rw-r--r--xmake/modules/devel/git/pull.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/devel/git/pull.lua b/xmake/modules/devel/git/pull.lua
index c5f1f6a55..a9923bb18 100644
--- a/xmake/modules/devel/git/pull.lua
+++ b/xmake/modules/devel/git/pull.lua
@@ -46,9 +46,12 @@ function main(opt)
-- init argv
local argv = {}
- 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
table.insert(argv, "pull")