You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the git extension API to get information about a repo that's been set up like this, the repository's remote doesn't have a meaningful url:
I don't see a way to resolve this URL to something meaningful using the git extension API. I think ideally the git extension API would resolve the fetch and push URLs instead of using the aliases.
The text was updated successfully, but these errors were encountered:
alexr00
added
bug
Issue identified by VS Code Team member as probable bug
feature-request
Request for new features or functionality
git
GIT issues
and removed
bug
Issue identified by VS Code Team member as probable bug
labels
Apr 26, 2023
As a data point, I ran into this issue today in VS Code while working on a repo I had cloned using an "insteadOf" alias. For context, I am using url.https://github.<corp>.com/.insteadof=github: so I can clone similarly with git clone github:<org>/<repo> against a GitHub Enterprise Server (on-prem) instance.
This irrevocably breaks any repo that was cloned with insteadOf. Even after I setting an upstream, vscode-pull-request-github was toast and kept trying to auth against my non-existent corporate repo
lszomoru
changed the title
Git extension API gives repository remotes with aliases
Git - extension API gives repository remotes with aliases
Dec 10, 2024
From @ashb in microsoft/vscode-pull-request-github#4551:
I have the following lines in my
~/.gitconfig
:(The effect is that I can do
git clone github:user/public
orgit 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:
When using the git extension API to get information about a repo that's been set up like this, the repository's remote doesn't have a meaningful url:
I don't see a way to resolve this URL to something meaningful using the git extension API. I think ideally the git extension API would resolve the fetch and push URLs instead of using the aliases.
The text was updated successfully, but these errors were encountered: