提交 f855ba87 编写于 作者: S Stephen Celis 提交者: Chris Wanstrath

Bail out of clone early for URLs.

上级 7d006785
......@@ -63,7 +63,9 @@ module Hub
next
end
if arg.scan('/').size == 1 && !arg.include?(':')
if arg =~ %r{.+?://|.+?@} # Bail out early for URLs.
break
elsif arg.scan('/').size == 1 && !arg.include?(':')
url = ssh ? PRIVATE : PUBLIC
args[args.index(arg)] = url % arg.split('/')
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册