summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/clean.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/devel/git/clean.lua')
-rw-r--r--xmake/modules/devel/git/clean.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/devel/git/clean.lua b/xmake/modules/devel/git/clean.lua
index 20265687b..91b6b5c82 100644
--- a/xmake/modules/devel/git/clean.lua
+++ b/xmake/modules/devel/git/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.insert(argv, "clean")
table.insert(argv, "-d")