diff options
Diffstat (limited to 'src/bin/git_remote_nostr/push.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index bd1188b..870f22d 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs | |||
| @@ -623,8 +623,8 @@ async fn generate_patches_or_pr_event_or_pr_updates( | |||
| 623 | let use_pr = parent_is_pr || git_repo.are_commits_too_big_for_patches(ahead); | 623 | let use_pr = parent_is_pr || git_repo.are_commits_too_big_for_patches(ahead); |
| 624 | 624 | ||
| 625 | if use_pr { | 625 | if use_pr { |
| 626 | let tip = ahead.first().context("no commits")?; // ahead is youngest first | 626 | let tip = ahead.last().context("no commits")?; // ahead is oldest first (callers reverse it) |
| 627 | let first_commit = ahead.last().context("no commits")?; | 627 | let first_commit = ahead.first().context("no commits")?; |
| 628 | let push_options_refs: Vec<&str> = | 628 | let push_options_refs: Vec<&str> = |
| 629 | git_server_push_options.iter().map(String::as_str).collect(); | 629 | git_server_push_options.iter().map(String::as_str).collect(); |
| 630 | select_servers_push_refs_and_generate_pr_or_pr_update_event( | 630 | select_servers_push_refs_and_generate_pr_or_pr_update_event( |