summaryrefslogtreecommitdiff
path: root/xmake/modules/devel/git
diff options
context:
space:
mode:
authorruki <[email protected]>2018-10-02 21:01:39 +0800
committerruki <[email protected]>2018-10-02 00:09:57 +0800
commit4248b37344ac119834ed633fabe94673caeb46d0 (patch)
treec00550663382509981693f40fd0552d178ff9fdf /xmake/modules/devel/git
parent661909c4299c0b4eb511921269a2948c0aa9ad7c (diff)
improve to link and copy package
Diffstat (limited to 'xmake/modules/devel/git')
-rw-r--r--xmake/modules/devel/git/checkurl.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/devel/git/checkurl.lua b/xmake/modules/devel/git/checkurl.lua
index d0b937e1c..df7441e81 100644
--- a/xmake/modules/devel/git/checkurl.lua
+++ b/xmake/modules/devel/git/checkurl.lua
@@ -29,5 +29,5 @@
-- @return true or false
--
function main(url)
- return url:endswith(".git") or os.isdir(url .. ".git")
+ return url:endswith(".git") or url:startswith("git://") or os.isdir(url .. ".git")
end