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

@@ -1518,7 +1518,7 @@ export class Repository implements Disposable {
async getBranches(query: BranchQuery = {}, cancellationToken?: CancellationToken): Promise<Ref[]> {
return await this.run(Operation.GetBranches, async () => {
const refs = await this.getRefs(query, cancellationToken);
return refs.filter(value => (value.type === RefType.Head || value.type === RefType.RemoteHead) && (query.remote || !value.remote));
return refs.filter(value => value.type === RefType.Head || (value.type === RefType.RemoteHead && query.remote));
});
}