From 441628171fac4ea543c1c87f66c533237c2067e4 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 30 Oct 2022 11:15:59 +0800 Subject: improve git module --- xmake/modules/devel/git/pull.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmake/modules/devel/git/pull.lua') diff --git a/xmake/modules/devel/git/pull.lua b/xmake/modules/devel/git/pull.lua index 412e6e757..c5f1f6a55 100644 --- a/xmake/modules/devel/git/pull.lua +++ b/xmake/modules/devel/git/pull.lua @@ -45,7 +45,12 @@ function main(opt) local git = assert(find_tool("git"), "git not found!") -- init argv - local argv = {"pull"} + local argv = {} + if opt.fsmonitor ~= nil then + table.insert(argv, "-c") + table.insert(argv, "core.fsmonitor=" .. tostring(opt.fsmonitor)) + end + table.insert(argv, "pull") -- set remote table.insert(argv, opt.remote or "origin") -- cgit v1.3.1