Skip to content

Commit 30cc751

Browse files
authored
Fix lots of GitHub Enterprise requests (#4544)
* Fix lots of GitHub Enterprise requests Part of #4523 * Use correct URL
1 parent 153128f commit 30cc751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github/folderRepositoryManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,9 +2212,9 @@ export class FolderRepositoryManager implements vscode.Disposable {
22122212
if (existing) {
22132213
return existing;
22142214
}
2215-
const uri = `https://github.com/${owner}/${repositoryName}`;
22162215
const gitRemotes = parseRepositoryRemotes(this.repository);
22172216
const gitRemote = gitRemotes.find(r => r.owner === owner && r.repositoryName === repositoryName);
2217+
const uri = gitRemote?.url ?? `https://github.com/${owner}/${repositoryName}`;
22182218
return this.createAndAddGitHubRepository(new Remote(gitRemote?.remoteName ?? repositoryName, uri, new Protocol(uri)), this._credentialStore);
22192219
}
22202220

0 commit comments

Comments
 (0)