Fix copiedFromRemoteId bug

- correctly shows commits as rebased when changeId is missing
- setting relatedTo is sufficient, no need to touch `get status()`
This commit is contained in:
Mattias Granlund 2024-09-01 12:35:53 +03:00
parent de310a203d
commit 98c3f5d310

View File

@ -188,10 +188,7 @@ export class DetailedCommit {
get status(): CommitStatus {
if (this.isIntegrated) return 'integrated';
if (
(this.isRemote && (!this.relatedTo || this.id === this.relatedTo.id)) ||
(this.copiedFromRemoteId && this.relatedTo && this.copiedFromRemoteId === this.relatedTo.id)
)
if (this.isRemote && (!this.relatedTo || this.id === this.relatedTo.id))
return 'localAndRemote';
return 'local';
}