diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/push.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/push.rs | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/bin/ngit/sub_commands/push.rs b/src/bin/ngit/sub_commands/push.rs index 66edfb4..a77f356 100644 --- a/src/bin/ngit/sub_commands/push.rs +++ b/src/bin/ngit/sub_commands/push.rs | |||
| @@ -73,12 +73,9 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 73 | .context("cannot find proposal that matches the current branch name")? | 73 | .context("cannot find proposal that matches the current branch name")? |
| 74 | .clone(); | 74 | .clone(); |
| 75 | 75 | ||
| 76 | let commit_events = get_all_proposal_patch_events_from_cache( | 76 | let commit_events = |
| 77 | git_repo_path, | 77 | get_all_proposal_patch_events_from_cache(git_repo_path, &repo_ref, &proposal_root_event.id) |
| 78 | &repo_ref, | 78 | .await?; |
| 79 | &proposal_root_event.id(), | ||
| 80 | ) | ||
| 81 | .await?; | ||
| 82 | 79 | ||
| 83 | let most_recent_proposal_patch_chain = get_most_recent_patch_with_ancestors(commit_events) | 80 | let most_recent_proposal_patch_chain = get_most_recent_patch_with_ancestors(commit_events) |
| 84 | .context("cannot get most recent patch for proposal")?; | 81 | .context("cannot get most recent patch for proposal")?; |
| @@ -191,7 +188,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 191 | Some(proposal_root_event.id), | 188 | Some(proposal_root_event.id), |
| 192 | &signer, | 189 | &signer, |
| 193 | &repo_ref, | 190 | &repo_ref, |
| 194 | patch_events.last().map(nostr::Event::id), | 191 | patch_events.last().map(|e| e.id), |
| 195 | None, | 192 | None, |
| 196 | None, | 193 | None, |
| 197 | &None, | 194 | &None, |