Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
remote-helper: Check base when matching revisions
◌ CI pending Lorenz Leutgeb committed 7 months ago
commit e1958731d2e9321209674063134428cd98f4112b
parent 034470515c586aeef70d1a49c9eec30e713261c9
1 pending (1 total) View logs
1 file changed +5 -2
modified crates/radicle-remote-helper/src/push.rs
@@ -702,8 +702,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);
    }