diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/pull.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/pull.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/ngit/sub_commands/pull.rs b/src/bin/ngit/sub_commands/pull.rs index b331dbe..eba6fc5 100644 --- a/src/bin/ngit/sub_commands/pull.rs +++ b/src/bin/ngit/sub_commands/pull.rs | |||
| @@ -50,10 +50,9 @@ pub async fn launch() -> Result<()> { | |||
| 50 | .iter() | 50 | .iter() |
| 51 | .find(|e| { | 51 | .find(|e| { |
| 52 | event_to_cover_letter(e).is_ok_and(|cl| { | 52 | event_to_cover_letter(e).is_ok_and(|cl| { |
| 53 | cl.branch_name.eq(&branch_name) | 53 | (public_key_if_known.is_some_and(|public_key| e.author().eq(&public_key)) |
| 54 | || (public_key_if_known | 54 | && (branch_name.eq(&format!("pr/{}", cl.branch_name)) |
| 55 | .is_some_and(|public_key| e.author().eq(&public_key)) | 55 | || cl.branch_name.eq(&branch_name))) |
| 56 | && branch_name.eq(&format!("pr/{}", cl.branch_name))) | ||
| 57 | || cl.get_branch_name().is_ok_and(|s| s.eq(&branch_name)) | 56 | || cl.get_branch_name().is_ok_and(|s| s.eq(&branch_name)) |
| 58 | }) && !event_is_revision_root(e) | 57 | }) && !event_is_revision_root(e) |
| 59 | }) | 58 | }) |