Skip to content

Commit

Permalink
Allows branches Map to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Nov 22, 2023
1 parent 7645901 commit 4f318a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/git/models/branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export function sortBranches(branches: GitBranch[], options?: BranchSortOptions)
export async function getLocalBranchByUpstream(
repo: Repository,
remoteBranchName: string,
branches?: PageableResult<GitBranch>,
branches?: PageableResult<GitBranch> | Map<unknown, GitBranch>,
): Promise<GitBranch | undefined> {
let qualifiedRemoteBranchName;
if (remoteBranchName.startsWith('remotes/')) {
Expand Down
2 changes: 1 addition & 1 deletion src/git/models/worktree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export async function getWorktreeForBranch(
branchName: string,
upstreamNames: string | string[],
worktrees?: GitWorktree[],
branches?: PageableResult<GitBranch>,
branches?: PageableResult<GitBranch> | Map<unknown, GitBranch>,
): Promise<GitWorktree | undefined> {
if (upstreamNames != null && !Array.isArray(upstreamNames)) {
upstreamNames = [upstreamNames];
Expand Down

0 comments on commit 4f318a5

Please sign in to comment.