Git - fix "Open on GitHub" command (#237832)

This commit is contained in:
Ladislau Szomoru
2025-01-14 11:45:03 +01:00
committed by GitHub
parent ef520e4d79
commit 9ee0345b63
2 changed files with 2 additions and 2 deletions

View File

@@ -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