upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr')
-rw-r--r--src/bin/git_remote_nostr/push.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs
index d42c904..1738790 100644
--- a/src/bin/git_remote_nostr/push.rs
+++ b/src/bin/git_remote_nostr/push.rs
@@ -1244,11 +1244,10 @@ async fn get_proposal_and_revision_root_from_patch(
1244 bail!("thread root is not a git patch"); 1244 bail!("thread root is not a git patch");
1245 } 1245 }
1246 1246
1247 if proposal_or_revision 1247 if proposal_or_revision.tags.iter().any(|t| {
1248 .tags 1248 t.as_slice().len() > 1
1249 .iter() 1249 && ["revision-root", "root-revision"].contains(&t.as_slice()[1].as_str())
1250 .any(|t| t.as_slice().len() > 1 && t.as_slice()[1].eq("revision-root")) 1250 }) {
1251 {
1252 Ok(( 1251 Ok((
1253 EventId::parse( 1252 EventId::parse(
1254 &proposal_or_revision 1253 &proposal_or_revision