Skip to content

Update remote URL parsing to support non-git ssh user #189

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

Merged
merged 2 commits into from
May 29, 2025

Conversation

Nadock
Copy link

@Nadock Nadock commented May 27, 2025

On my work device, all of our GitHub remotes are configured with remote URLs that look like org-1234567@github.com/Org/repo.git. This is (I believe) part of how enterprise federate access works.

As a result, the regex used to match the user section of the remote URL does not match and the URL the generated looks like https://github.comno-remote-url/commit/{hash}. Note the no-remote-url part.

The fix is to update the regex to correctly match these remote URLs. I have included that fix and a test to reproduce the issue in this PR.

@Sertion Sertion merged commit 5dfe7c5 into Sertion:main May 29, 2025
1 check passed
@Sertion
Copy link
Owner

Sertion commented May 29, 2025

Hey Nadock. Thanks for the PR. Looks like a very reasonable feature and implementation. Great that you added a test to verify as well!

Will look to get out a new release in the coming days.

@Sertion
Copy link
Owner

Sertion commented May 29, 2025

A new version has been pushed to Open VSX and Visual Studio Marketplace.

@Nadock
Copy link
Author

Nadock commented May 30, 2025

Thanks for merging this @Sertion — I've just checked and the latest version does indeed fix this issue.

@Nadock Nadock deleted the fix-enterprise-org-remote-url branch May 30, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants