Skip to content

Commit

Permalink
Git - fix condition for setting the base branch (microsoft#223493)
Browse files Browse the repository at this point in the history
  • Loading branch information
lszomoru authored and Edward Tsai committed Jul 26, 2024
1 parent d5352d5 commit a4dae44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/git/src/historyProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
revision: this.repository.HEAD.upstream.commit
} : undefined,
base: mergeBase &&
mergeBase.remote !== this.repository.HEAD.upstream?.remote &&
mergeBase.name !== this.repository.HEAD.upstream?.name ? {
(mergeBase.remote !== this.repository.HEAD.upstream?.remote ||
mergeBase.name !== this.repository.HEAD.upstream?.name) ? {
id: `refs/remotes/${mergeBase.remote}/${mergeBase.name}`,
name: `${mergeBase.remote}/${mergeBase.name}`,
revision: mergeBase.commit
Expand Down

0 comments on commit a4dae44

Please sign in to comment.