mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Git - fix "Open on GitHub" command (#237832)
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user