summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/pull.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-09-20 22:36:46 +0800
committerruki <[email protected]>2017-09-20 09:40:39 +0800
commit218e2711e1afacd334ce50b37b0fa2d2db573e8e (patch)
tree1f335873793c96d5e3cd1e9e9d149bb3fcba0bef /xmake/modules/devel/git/pull.lua
parent8edce1f3f7f2e779eb3bf66702d4b5271e82a63b (diff)
add some install scripts for package manager
Diffstat (limited to 'xmake/modules/devel/git/pull.lua')
-rw-r--r--xmake/modules/devel/git/pull.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/pull.lua b/xmake/modules/devel/git/pull.lua
index 2bba0184b..758a5f930 100644
--- a/xmake/modules/devel/git/pull.lua
+++ b/xmake/modules/devel/git/pull.lua
@@ -24,7 +24,7 @@
-- imports
import("core.base.option")
-import("detect.tools.find_git")
+import("lib.detect.find_tool")
-- pull remote commits
--
@@ -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
@@ -68,7 +68,7 @@ function main(opt)
end
-- pull it
- os.vrunv(program, argv)
+ os.vrunv(git.program, argv)
-- leave repository directory
if oldir then