diff options
Diffstat (limited to 'xmake/modules/devel/git/submodule')
| -rw-r--r-- | xmake/modules/devel/git/submodule/clean.lua | 7 | ||||
| -rw-r--r-- | xmake/modules/devel/git/submodule/reset.lua | 7 | ||||
| -rw-r--r-- | xmake/modules/devel/git/submodule/update.lua | 7 |
3 files changed, 15 insertions, 6 deletions
diff --git a/xmake/modules/devel/git/submodule/clean.lua b/xmake/modules/devel/git/submodule/clean.lua index c1817257c..622dff3e7 100644 --- a/xmake/modules/devel/git/submodule/clean.lua +++ b/xmake/modules/devel/git/submodule/clean.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.join2(argv, "submodule", "foreach", "--recursive", "git", "clean", "-d") diff --git a/xmake/modules/devel/git/submodule/reset.lua b/xmake/modules/devel/git/submodule/reset.lua index 1095310e7..e0c7bf98d 100644 --- a/xmake/modules/devel/git/submodule/reset.lua +++ b/xmake/modules/devel/git/submodule/reset.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.join2(argv, "submodule", "foreach", "--recursive", "git", "reset") 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") |
