From fdff022d0732c24f8e2d8076896c2b44db03139b Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 30 Oct 2022 11:24:34 +0800 Subject: improve git fsmonitor --- xmake/modules/devel/git/submodule/reset.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'xmake/modules/devel/git/submodule/reset.lua') 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") -- cgit v1.3.1