fix: use ssh url for ssh protocol upstream#3853
fix: use ssh url for ssh protocol upstream#3853alexr00 merged 1 commit intomicrosoft:mainfrom yin1999:fix-ssh-url
Conversation
The git protocol is not supported by GitHub, see: https://github.blog/2021-09-01-improving-git-protocol-security-github/
|
Is there any problem on this? |
alexr00
left a comment
There was a problem hiding this comment.
Thanks for the PR and for the reminder! the ssh_url still used the git protocol in my testing, but it still makes sense to switch over to it in case that changes.
I will merge this PR later this week after we have released the new version of the extension.
Hi @alexr00, I'm not really sure about this, I've tested on my windows, and this works for me (if I just use my out.mp4But, when I merge the newest main branch into this branch ( out2.mp4And I can't debug with the rebased branch, so I can't figure out what's wrong with this. |
|
@yin1999 I'm still seeing the |
This is still |
See also: https://git-scm.com/book/en/v2/Git-Internals-Transfer-Protocols#_ssh_2 |
|
Thanks for the explanation! I tested again with a rebase to bring in the latest changes, and I get the correct format: I'm still planning to merge this right after the next release. |


The git protocol is not supported by GitHub, see: https://github.blog/2021-09-01-improving-git-protocol-security-github/
When we use this extension in a repo which is using ssh protocol (such as:
git@github.com:microsoft/vscode-pull-request-github), the upstream will be set asgit://xxxxxx. But it's not supported on GitHub.We should set ssh protocol instead.
Steps to reproduce
git clone git@github.com:<user>/vscode-pull-request-github.git.git/config, we can see the upstream url is set togit://github.com/microsoft/vscode-pull-request-github.git(with git protocol which is not supported by GitHub now. And I think it should be ssh protocol which is the same as the fork's protocol)