upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/pull.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sub_commands/pull.rs')
-rw-r--r--src/sub_commands/pull.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sub_commands/pull.rs b/src/sub_commands/pull.rs
index dfa6f89..e33a744 100644
--- a/src/sub_commands/pull.rs
+++ b/src/sub_commands/pull.rs
@@ -50,7 +50,8 @@ pub async fn launch() -> Result<()> {
50 .await? 50 .await?
51 .iter() 51 .iter()
52 .find(|e| { 52 .find(|e| {
53 event_to_cover_letter(e).is_ok_and(|cl| cl.branch_name.eq(&branch_name)) 53 event_to_cover_letter(e)
54 .is_ok_and(|cl| cl.get_branch_name().is_ok_and(|s| s.eq(&branch_name)))
54 && !event_is_revision_root(e) 55 && !event_is_revision_root(e)
55 }) 56 })
56 .context("cannot find proposal that matches the current branch name")? 57 .context("cannot find proposal that matches the current branch name")?