diff options
| author | ruki <[email protected]> | 2019-06-07 00:32:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-06 21:16:30 +0800 |
| commit | 7021c6e06c49f78ee948c69c51322fa64071a1b0 (patch) | |
| tree | ebca9c44fa81a309b5cb598b8d767e84ac021d14 | |
| parent | f5f397ac93f8f818fd447dc8a81de4d5f8299fe8 (diff) | |
modify code style
| -rw-r--r-- | xmake/actions/update/get_version.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/devel/git/asgiturl.lua | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/xmake/actions/update/get_version.lua b/xmake/actions/update/get_version.lua index 2c45b6ae1..03450b1ad 100644 --- a/xmake/actions/update/get_version.lua +++ b/xmake/actions/update/get_version.lua @@ -26,7 +26,9 @@ import("net.http") import("devel.git") import("net.fasturl") -local official_sources = { +-- the official git sources for xmake +local official_sources = +{ "https://github.com/xmake-io/xmake.git", "https://gitlab.com/tboox/xmake.git", "https://gitee.com/tboox/xmake.git" diff --git a/xmake/modules/devel/git/asgiturl.lua b/xmake/modules/devel/git/asgiturl.lua index 2b8f5ea7e..4fd6ba742 100644 --- a/xmake/modules/devel/git/asgiturl.lua +++ b/xmake/modules/devel/git/asgiturl.lua @@ -21,7 +21,8 @@ -- imports import("checkurl") -local custom_protocol = { +local custom_protocol = +{ ["github:"] = "https://github.com" , ["gitlab:"] = "https://gitlab.com" , ["gitee:"] = "https://gitee.com" @@ -36,6 +37,8 @@ local custom_protocol = { -- function main(url) + + -- check url = url:trim() assert(#url > 0) |
