diff options
| author | ruki <[email protected]> | 2017-09-20 22:36:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-20 09:40:39 +0800 |
| commit | 218e2711e1afacd334ce50b37b0fa2d2db573e8e (patch) | |
| tree | 1f335873793c96d5e3cd1e9e9d149bb3fcba0bef /xmake/modules/devel/git/ls_remote.lua | |
| parent | 8edce1f3f7f2e779eb3bf66702d4b5271e82a63b (diff) | |
add some install scripts for package manager
Diffstat (limited to 'xmake/modules/devel/git/ls_remote.lua')
| -rw-r--r-- | xmake/modules/devel/git/ls_remote.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/modules/devel/git/ls_remote.lua b/xmake/modules/devel/git/ls_remote.lua index a76494337..30853224b 100644 --- a/xmake/modules/devel/git/ls_remote.lua +++ b/xmake/modules/devel/git/ls_remote.lua @@ -24,7 +24,7 @@ -- imports import("core.base.option") -import("detect.tools.find_git") +import("lib.detect.find_tool") -- ls_remote to given branch, tag or commit -- @@ -46,16 +46,16 @@ import("detect.tools.find_git") function main(reftype, url) -- find git - local program = find_git() - if not program then - return {} + local git = find_tool("git") + if not git then + return end -- init reference type reftype = reftype or "refs" -- get refs - local data = os.iorunv(program, {"ls-remote", "--" .. reftype, url or "."}) + local data = os.iorunv(git.program, {"ls-remote", "--" .. reftype, url or "."}) -- get commmits and tags local refs = {} |
