Skip to content

Copy GitHub Permalink doesn't work for GitHub Managed User (ghe.com)#7478

Merged
alexr00 merged 1 commit intomainfrom
alexr00/issue7389
Aug 4, 2025
Merged

Copy GitHub Permalink doesn't work for GitHub Managed User (ghe.com)#7478
alexr00 merged 1 commit intomainfrom
alexr00/issue7389

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Jul 31, 2025

Fixes #7389

@alexr00 alexr00 enabled auto-merge (squash) July 31, 2025 15:36
@alexr00 alexr00 self-assigned this Jul 31, 2025
@vs-code-engineering vs-code-engineering bot added this to the July 2025 milestone Jul 31, 2025
Comment on lines -375 to -377
if (fetchUrl.startsWith('ssh://')) {
fetchUrl = fetchUrl.substr('ssh://'.length);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to remove more than what the PR title implies, are we losing anything important here/is there unwanted risk after testing has happened?

Copy link
Member Author

@alexr00 alexr00 Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason that copy permaklink didn't work for ghe.com was because I was not properly handling parsing the git remote when it wasn't https. Protocol's logic for parsing git remotes is more complete, and I should hav used Protocol here from the start. The change replaces the poor git remote parsing, with the more thorough Protocol class's git remote parsine.

I tested this with a github.com remote, a GitHub Enterprise remote, and a ghe.com remote.

@osortega osortega modified the milestones: July 2025, August 2025 Aug 1, 2025
@alexr00 alexr00 merged commit 10210be into main Aug 4, 2025
3 checks passed
@alexr00 alexr00 deleted the alexr00/issue7389 branch August 4, 2025 08:14
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.

Copy GitHub Permalink doesn't work for GitHub Managed User (ghe.com)

4 participants