Skip to content
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

Use extension on windows with WSL #1561

Closed
CombeeMike opened this issue Mar 11, 2020 · 2 comments
Closed

Use extension on windows with WSL #1561

CombeeMike opened this issue Mar 11, 2020 · 2 comments
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@CombeeMike
Copy link

I just installed this extension. Connecting to GitHub worked just fine but on PR checkout, i got the error message Failed to execute git. Please check git output for more details.

The git output shows the following:

// ...

> git pull --tags
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
> git fetch origin branch/name --depth=1
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

// ...

I guess that's due to the fact that I'm on Win 10 and have not set up the SSH agent etc. in the Git Bash since I usually perform all Git operations which need authentication from within my WSL Ubuntu Terminal which has the SSH agent running etc.

  1. Is my assumption above correct?
  2. Is there any way to work around this issue without having to set up the SSH agent in my Git Bash?

I really enjoy my current setup with the WSL and don't want to have to setup & maintain 2 systems (WSL & Git Bash) just to make this extension work...

@CombeeMike
Copy link
Author

FYI: Checkout seems to be working if I manually switch to the PR branch & perform a git pull inside the WSL before clicking on the "checkout" button in the extension...

@alexr00 alexr00 added the bug Issue identified by VS Code Team member as probable bug label Nov 11, 2020
@alexr00
Copy link
Member

alexr00 commented Nov 18, 2021

@CombeeMike I'm closing this as a lot has changed since you filed the issue, but please comment if this is still not working for you!

@alexr00 alexr00 closed this as completed Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants