提交 1570f7ab 编写于 作者: N Nick Lewis 提交者: Chris Wanstrath

Added support for `remote set-url`

上级 332357e0
......@@ -110,7 +110,7 @@ module Hub
# $ hub remote add origin
# > git remote add origin git://github.com/YOUR_LOGIN/THIS_REPO.git
def remote(args)
return if args[1] != 'add' || args.last =~ %r{.+?://|.+?@|^[./]}
return unless ['add','set-url'].include?(args[1]) && args.last !~ %r{.+?://|.+?@|^[./]}
ssh = args.delete('-p')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册