summaryrefslogtreecommitdiff
path: root/xmake/modules/devel
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-04 22:41:25 +0800
committerruki <[email protected]>2019-06-04 10:08:31 +0800
commit18663d52e5ff484eea423f88cbf52cc10c5721f3 (patch)
tree3e1e147713b4ca50276b676b9b346f52f893708b /xmake/modules/devel
parent255d51be7e7ed10a13a4cd55b5aae55079ab4bb9 (diff)
improve string.split
Diffstat (limited to 'xmake/modules/devel')
-rw-r--r--xmake/modules/devel/git/ls_remote.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/ls_remote.lua b/xmake/modules/devel/git/ls_remote.lua
index e7e37b8ac..391b85caf 100644
--- a/xmake/modules/devel/git/ls_remote.lua
+++ b/xmake/modules/devel/git/ls_remote.lua
@@ -58,7 +58,7 @@ function main(reftype, url)
for _, line in ipairs(data:split('\n')) do
-- parse commit and ref
- local refinfo = line:split('%s+')
+ local refinfo = line:split('%s')
-- get commit
local commit = refinfo[1]