diff options
Diffstat (limited to 'xmake/modules/devel/git/submodule/update.lua')
| -rw-r--r-- | xmake/modules/devel/git/submodule/update.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/submodule/update.lua b/xmake/modules/devel/git/submodule/update.lua index 511684c1c..d81495a88 100644 --- a/xmake/modules/devel/git/submodule/update.lua +++ b/xmake/modules/devel/git/submodule/update.lua @@ -44,7 +44,13 @@ function main(opt) local git = assert(find_tool("git"), "git not found!") -- init argv - local argv = {"submodule", "update"} + local argv = {} + if opt.fsmonitor ~= nil then + table.insert(argv, "-c") + table.insert(argv, "core.fsmonitor=" .. tostring(opt.fsmonitor)) + end + table.insert(argv, "submodule") + table.insert(argv, "update") for _, name in ipairs({"init", "remote", "force", "checkout", "merge", "rebase", "recursive"}) do if opt[name] then table.insert(argv, "--" .. name) |
