upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit')
-rw-r--r--src/bin/ngit/sub_commands/send.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/send.rs b/src/bin/ngit/sub_commands/send.rs
index 0e4a572..6ae0cda 100644
--- a/src/bin/ngit/sub_commands/send.rs
+++ b/src/bin/ngit/sub_commands/send.rs
@@ -206,11 +206,15 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs, no_fetch: bool) -> Re
206 commits.reverse(); 206 commits.reverse();
207 207
208 let events = if as_pr { 208 let events = if as_pr {
209 let tip = commits.last().context("no commits")?; // commits has been reversed to oldest first
210 let first_commit = commits.first().context("no commits")?;
209 select_servers_push_refs_and_generate_pr_or_pr_update_event( 211 select_servers_push_refs_and_generate_pr_or_pr_update_event(
210 &client, 212 &client,
211 &git_repo, 213 &git_repo,
212 &repo_ref, 214 &repo_ref,
213 commits.last().context("no commits")?, 215 tip,
216 first_commit,
217 git_repo.get_commit_parent(first_commit).ok().as_ref(),
214 &mut user_ref, 218 &mut user_ref,
215 root_proposal.as_ref(), 219 root_proposal.as_ref(),
216 &cover_letter_title_description, 220 &cover_letter_title_description,