mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Git - fix "Open on GitHub" command (#237832)
This commit is contained in:
@@ -73,7 +73,7 @@ export function registerCommands(gitAPI: GitAPI): vscode.Disposable {
|
||||
}
|
||||
|
||||
// Get the unique remotes that contain the commit
|
||||
const branches = await apiRepository.getBranches({ contains: historyItem.id });
|
||||
const branches = await apiRepository.getBranches({ contains: historyItem.id, remote: true });
|
||||
const remoteNames = new Set(branches.filter(b => b.type === RefType.RemoteHead && b.remote).map(b => b.remote!));
|
||||
|
||||
// GitHub remotes that contain the commit
|
||||
|
||||
Reference in New Issue
Block a user