Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix: use the latest commit in a patch or push change
Lars Wirzenius committed 1 year ago
commit c82fc3f657d31c9e737bcbc96000cb6bb4c8ad79
parent 645c5436cb3bffc5fc5f9157d31ea9412f62ac35
1 file changed +2 -2
modified src/msg.rs
@@ -322,9 +322,9 @@ impl Request {
                patch,
            } => {
                if let Some(push) = push {
-
                    *push.commits.last().unwrap()
+
                    *push.commits.first().unwrap()
                } else if let Some(patch) = patch {
-
                    *patch.patch.commits.last().unwrap()
+
                    *patch.patch.commits.first().unwrap()
                } else {
                    panic!("neither push not panic: {self:#?}");
                }