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