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 failure Lorenz Leutgeb committed 7 months ago
commit 11410aa5b392fc3e7f2fedcf8e058a850b3df2f6
parent b98df1f3bcfe33dc229dff884ecf422a7c42866b
2 failed 1 pending (3 total) View logs
1 file changed +5 -2
modified crates/radicle-remote-helper/src/push.rs
@@ -679,8 +679,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);
    }