diff --git a/crates/radicle-remote-helper/src/push.rs b/crates/radicle-remote-helper/src/push.rs index 8b907c5d..0a86d519 100644 --- a/crates/radicle-remote-helper/src/push.rs +++ b/crates/radicle-remote-helper/src/push.rs @@ -692,8 +692,11 @@ where let base = patch_base(head, &opts, stored)?; - // Don't update patch if it already has a revision matching this commit. - if patch.revisions().any(|(_, r)| r.head() == *head) { + // Don't update patch if it already has a matching revision. + if patch + .revisions() + .any(|(_, r)| r.head() == *head && *r.base() == base) + { return Ok(None); }