summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/refs.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/devel/git/refs.lua')
-rw-r--r--xmake/modules/devel/git/refs.lua8
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