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.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/clean.lua b/xmake/modules/devel/git/clean.lua
index b69db1150..839ee2fe3 100644
--- a/xmake/modules/devel/git/clean.lua
+++ b/xmake/modules/devel/git/clean.lua
@@ -24,7 +24,7 @@
-- imports
import("core.base.option")
-import("detect.tools.find_git")
+import("lib.detect.find_tool")
-- clean files
--
@@ -42,8 +42,8 @@ import("detect.tools.find_git")
function main(opt)
-- find git
- local program = find_git()
- if not program then
+ local git = find_tool("git")
+ if not git then
return
end
@@ -67,7 +67,7 @@ function main(opt)
end
-- clean it
- os.vrunv(program, argv)
+ os.vrunv(git.program, argv)
-- leave repository directory
if oldir then