提交 649d45d7 编写于 作者: C Chris Wanstrath

Merge branch 'master' of github.com:defunkt/hub

......@@ -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.
先完成此消息的编辑!
想要评论请 注册