diff options
Diffstat (limited to 'src/bin/git_remote_nostr')
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 9 |
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 9ba7c30..d0cf923 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs | |||
| @@ -1365,11 +1365,10 @@ async fn get_proposal_and_revision_root_from_patch( | |||
| 1365 | bail!("thread root is not a git patch"); | 1365 | bail!("thread root is not a git patch"); |
| 1366 | } | 1366 | } |
| 1367 | 1367 | ||
| 1368 | if proposal_or_revision | 1368 | if proposal_or_revision.tags.iter().any(|t| { |
| 1369 | .tags | 1369 | t.as_slice().len() > 1 |
| 1370 | .iter() | 1370 | && ["revision-root", "root-revision"].contains(&t.as_slice()[1].as_str()) |
| 1371 | .any(|t| t.as_slice().len() > 1 && t.as_slice()[1].eq("revision-root")) | 1371 | }) { |
| 1372 | { | ||
| 1373 | Ok(( | 1372 | Ok(( |
| 1374 | EventId::parse( | 1373 | EventId::parse( |
| 1375 | &proposal_or_revision | 1374 | &proposal_or_revision |