Git - fix upstream state management check (#205078)

This commit is contained in:
Ladislau Szomoru 2024-02-13 11:53:50 +01:00 committed by GitHub
parent 656e26c80f
commit 45e2e2072f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}