Skip to content

Commit 98c3f5d

Browse files
committed
Fix copiedFromRemoteId bug
- correctly shows commits as rebased when changeId is missing - setting relatedTo is sufficient, no need to touch `get status()`
1 parent de310a2 commit 98c3f5d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/desktop/src/lib/vbranches/types.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,7 @@ export class DetailedCommit {
188188

189189
get status(): CommitStatus {
190190
if (this.isIntegrated) return 'integrated';
191-
if (
192-
(this.isRemote && (!this.relatedTo || this.id === this.relatedTo.id)) ||
193-
(this.copiedFromRemoteId && this.relatedTo && this.copiedFromRemoteId === this.relatedTo.id)
194-
)
191+
if (this.isRemote && (!this.relatedTo || this.id === this.relatedTo.id))
195192
return 'localAndRemote';
196193
return 'local';
197194
}

0 commit comments

Comments
 (0)