diff options
Diffstat (limited to 'xmake/modules/devel/git/submodule/update.lua')
| -rw-r--r-- | xmake/modules/devel/git/submodule/update.lua | 7 |
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") |
