diff options
| author | ruki <[email protected]> | 2017-08-14 11:27:19 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-08-14 11:29:30 +0800 |
| commit | dba45d143d8aff047da82cbe1a881056e6e4bc00 (patch) | |
| tree | 7b80d5de264c17b538a7c9d0fbb234ded39ac683 /xmake/modules/devel/git/refs.lua | |
| parent | 34706ba053dda9dd86902cacf42a6c1878c85234 (diff) | |
merge repo and require codes
Diffstat (limited to 'xmake/modules/devel/git/refs.lua')
| -rw-r--r-- | xmake/modules/devel/git/refs.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/modules/devel/git/refs.lua b/xmake/modules/devel/git/refs.lua index 306b2fd26..7af98b854 100644 --- a/xmake/modules/devel/git/refs.lua +++ b/xmake/modules/devel/git/refs.lua @@ -30,13 +30,13 @@ import("ls_remote") -- -- @param url the remote url, optional -- --- @return the refs +-- @return the tags, branches -- -- @code -- -- import("devel.git") -- --- local refs = git.refs(url) +-- local tags, branches = git.refs(url) -- -- @endcode -- @@ -45,7 +45,7 @@ function main(url) -- get refs local refs = ls_remote("refs", url) if not refs or #refs == 0 then - return {} + return {}, {} end -- get tags and branches @@ -60,5 +60,5 @@ function main(url) end -- ok - return {tags = tags, branches = branches} + return tags, branches end |
