We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1df9684 + 76ce8b7 commit 28fdc98Copy full SHA for 28fdc98
src/git/repository.ts
@@ -78,7 +78,7 @@ export async function getGitHubUrls(): Promise<GitHubUrls[] | null> {
78
remote.length > 0 &&
79
(remote[0].pushUrl?.indexOf("github.com") !== -1 ||
80
(useEnterprise() && remote[0].pushUrl?.indexOf(new URL(getGitHubApiUri()).host) !== -1) ||
81
- remote[0].pushUrl?.indexOf(".ghe.com") !== -1)
+ (remote[0].pushUrl ? new URL(remote[0].pushUrl).host.endsWith(".ghe.com") : false))
82
) {
83
const url = remote[0].pushUrl;
84
0 commit comments