Skip to content

Unable to fetch repository. See output channel for more details #1968

@ghost

Description

I'm getting this output when clicking fetch in remotes in source control:

Unable to fetch repository. See output channel for more details

[2022-04-15 14:41:40.931] [ xxxx] LocalGitProvider.fetch — failed • 347 ms
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false fetch origin BRANCH_NAME
fatal: could not read Username for 'https://github.com': No such device or address

[2022-04-15 14:41:40.931] [ xxxx] GitProviderService.fetch — failed • 347 ms
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false fetch origin BRANCH_NAME
fatal: could not read Username for 'https://github.com': No such device or address

[2022-04-15 14:41:40.931] /home/username/.vscode/extensions/eamodio.gitlens-12.0.6/dist/gitlens.js:36:7507
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false fetch origin BRANCH_NAME
fatal: could not read Username for 'https://github.com': No such device or address
  • GitLens Version: 12.0.6
  • Git Version: 2.25.1
  • VSCode Version: 1.66.2
  • OS Version: Ubuntu 20.04

If I press Ctrl-Shift-P and use native Fetch there, it works (but not fetch by GitLens). Also push and pull in VScode itself works (not sure how to test it with GitLens). Also switching to another branch in remotes works.

I'm signed in with GitHub in VSCode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions