Stack - correctly flag remote commits when no changeid

This commit is contained in:
Kiril Videlov 2024-10-16 15:53:56 +02:00
parent 05e812ca88
commit 055a653979
No known key found for this signature in database
GPG Key ID: A4C733025427C471

View File

@ -512,7 +512,12 @@ fn stack_series(
.get(&change_id)
.cloned()
})
.or(copied_from_remote_id);
.or(copied_from_remote_id)
.or(if series.remote(&patch) {
Some(commit.id())
} else {
None
});
if remote_commit_id.map_or(false, |id| commit.id() != id) {
requires_force = true;
}