useHttpProtocol => preferedProtocol, ssh config
`useHttpProtocol` has been changed to a more generic `preferedProtocol` function that can be used to check the users hub.protocol settings. This allows us to use the SSH protocol in any location, regardless of the repository being private or public. ``` % git config --global hub.protocol ssh % ./hub --noop clone github/hub git clone git@github.com:github/hub.git % git config --global hub.protocol https % ./hub --noop clone github/hub git clone https://github.com/github/hub.git % git config --global hub.protocol none % ./hub --noop clone github/hub git clone git://github.com/github/hub.git ``` Tests were also added for `HUB_PROTOCOL = ssh`.
Showing
想要评论请 注册 或 登录