mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
Git - fix upstream state management check (#205078)
This commit is contained in:
parent
656e26c80f
commit
45e2e2072f
@ -81,8 +81,8 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
|
||||
// Check if Upstream has changed
|
||||
if (force ||
|
||||
this._HEAD?.upstream?.name !== this.repository.HEAD?.upstream?.name ||
|
||||
this._HEAD?.upstream?.remote === this.repository.HEAD?.upstream?.remote ||
|
||||
this._HEAD?.upstream?.commit === this.repository.HEAD?.upstream?.commit) {
|
||||
this._HEAD?.upstream?.remote !== this.repository.HEAD?.upstream?.remote ||
|
||||
this._HEAD?.upstream?.commit !== this.repository.HEAD?.upstream?.commit) {
|
||||
this.logger.trace('GitHistoryProvider:onDidRunGitStatus - Upstream has changed');
|
||||
this._onDidChangeCurrentHistoryItemGroupBase.fire();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user