summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/submodule/update.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-30 11:24:34 +0800
committerruki <[email protected]>2022-10-30 11:24:34 +0800
commitfdff022d0732c24f8e2d8076896c2b44db03139b (patch)
tree937a701d85d408557a2279fde7349412cd70fa46 /xmake/modules/devel/git/submodule/update.lua
parent441628171fac4ea543c1c87f66c533237c2067e4 (diff)
improve git fsmonitor
Diffstat (limited to 'xmake/modules/devel/git/submodule/update.lua')
-rw-r--r--xmake/modules/devel/git/submodule/update.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/devel/git/submodule/update.lua b/xmake/modules/devel/git/submodule/update.lua
index d81495a88..ee24bffcf 100644
--- a/xmake/modules/devel/git/submodule/update.lua
+++ b/xmake/modules/devel/git/submodule/update.lua
@@ -45,9 +45,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, "submodule")
table.insert(argv, "update")