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.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sub_commands/pull.rs b/src/sub_commands/pull.rs
index a8f9529..342c8bb 100644
--- a/src/sub_commands/pull.rs
+++ b/src/sub_commands/pull.rs
@@ -78,8 +78,7 @@ pub async fn launch() -> Result<()> {
78 vec![ 78 vec![
79 nostr::Filter::default() 79 nostr::Filter::default()
80 .kind(nostr::Kind::Custom(PATCH_KIND)) 80 .kind(nostr::Kind::Custom(PATCH_KIND))
81 .event(pr_event.id) 81 .event(pr_event.id),
82 .reference(format!("r-{root_commit}")),
83 ], 82 ],
84 ) 83 )
85 .await? 84 .await?
@@ -89,9 +88,6 @@ pub async fn launch() -> Result<()> {
89 && e.tags 88 && e.tags
90 .iter() 89 .iter()
91 .any(|t| t.as_vec().len() > 2 && t.as_vec()[1].eq(&pr_event.id.to_string())) 90 .any(|t| t.as_vec().len() > 2 && t.as_vec()[1].eq(&pr_event.id.to_string()))
92 && e.tags
93 .iter()
94 .any(|t| t.as_vec().len() > 1 && t.as_vec()[1].eq(&format!("r-{root_commit}")))
95 }) 91 })
96 .map(std::borrow::ToOwned::to_owned) 92 .map(std::borrow::ToOwned::to_owned)
97 .collect(); 93 .collect();