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 84dfa5b23d707bdf031138525e68f37a83121f63
parent 518667897be4db1930e24296f195cacb272d91d6
1 pending (1 total) View logs
1 file changed +5 -2
modified 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);
    }