Skip to content

Commit 1d9e04e

Browse files
authored
Fix Local PR branches for .dev (#6382)
Fixes #6373
1 parent ef6e63b commit 1d9e04e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/api.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export interface Repository {
185185
getBranches(query: BranchQuery): Promise<Ref[]>;
186186
getBranchBase(name: string): Promise<Branch | undefined>;
187187
setBranchUpstream(name: string, upstream: string): Promise<void>;
188-
getRefs(query: RefQuery, cancellationToken?: CancellationToken): Promise<Ref[]>;
188+
getRefs?(query: RefQuery, cancellationToken?: CancellationToken): Promise<Ref[]>; // Optional, because Remote Hub doesn't support this
189189

190190
getMergeBase(ref1: string, ref2: string): Promise<string>;
191191

src/github/folderRepositoryManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ export class FolderRepositoryManager implements vscode.Disposable {
868868
async getLocalPullRequests(): Promise<PullRequestModel[]> {
869869
const githubRepositories = this._githubRepositories;
870870

871-
if (!githubRepositories || !githubRepositories.length) {
871+
if (!githubRepositories || !githubRepositories.length || !this.repository.getRefs) {
872872
return [];
873873
}
874874

0 commit comments

Comments
 (0)