Skip to content

Extension mistakenly thinks I'm using GH Enterprise with global "url aliasing" #4551

@ashb

Description

@ashb

I have the following lines in my ~/.gitconfig:

[url "https://github.com/"]
  insteadOf = "github:"
  pushInsteadOf = "git@github.com:"
[url "git@github.com:"]
  insteadOf = "gh:"
  pushInsteadOf = "github:"
  pushInsteadOf = "git://github.com/"

(The effect is that I can do git clone github:user/public or git clone gh:user/private)

However I think the extension is getting confused about the gh: prefix and not reflecting my global git config.

For example, on such a private repo:

$ git config remote.origin.url
gh:user/private
$ git remote get-url origin
git@github.com:user/private

$ git remote show origin -n
* remote origin
  Fetch URL: git@github.com:user/private
  Push  URL: git@github.com:user/private

If handling these config options directly isn't an option, a way of forcing the ext to use github.com would be good too.

The error I'm getting in the "GitHub Pull Request" output is

[Debug 1676975618.298s] Authentication> GitHub Enterprise provider selected without URI.

and a generic notification of "Error signing in to GitHub Enterprise. [Try Again?] [Cancel]" is shown

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugupstream/vscode

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions