summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git/ls_remote.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-27 00:38:18 +0800
committerruki <[email protected]>2019-06-26 21:51:08 +0800
commit78aff8d5199448d604c8e9456063f9550d00c6b6 (patch)
tree3d0c6a08ae93caf1c0cb6bf6fd9e4001f6800de6 /xmake/modules/devel/git/ls_remote.lua
parent6b6fdf451392f5519ff8b8c99bb5df0692c18b36 (diff)
fix xmake update
Diffstat (limited to 'xmake/modules/devel/git/ls_remote.lua')
-rw-r--r--xmake/modules/devel/git/ls_remote.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/ls_remote.lua b/xmake/modules/devel/git/ls_remote.lua
index 391b85caf..e946a054a 100644
--- a/xmake/modules/devel/git/ls_remote.lua
+++ b/xmake/modules/devel/git/ls_remote.lua
@@ -50,8 +50,16 @@ function main(reftype, url)
-- init reference type
reftype = reftype or "refs"
+ -- init arguments
+ local argv = {"ls-remote", "--" .. reftype, url or "."}
+
+ -- trace
+ if option.get("verbose") then
+ print("%s %s", git.program, os.args(argv))
+ end
+
-- get refs
- local data = os.iorunv(git.program, {"ls-remote", "--" .. reftype, url or "."})
+ local data = os.iorunv(git.program, argv)
-- get commmits and tags
local refs = {}