-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: use ssh url for ssh protocol upstream #3853
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
[email protected]: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 [email protected]:<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)