upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git_remote_helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git_remote_helper.rs')
-rw-r--r--src/git_remote_helper.rs20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/git_remote_helper.rs b/src/git_remote_helper.rs
index 6997dfa..97db69a 100644
--- a/src/git_remote_helper.rs
+++ b/src/git_remote_helper.rs
@@ -814,8 +814,24 @@ async fn push(
814 rejected_proposal_refspecs.push(refspec.to_string()); 814 rejected_proposal_refspecs.push(refspec.to_string());
815 } 815 }
816 } else { 816 } else {
817 // TODO new proposal / proposal no longer open 817 // TODO new proposal / couldn't find exisiting proposal
818 // / we couldn't 818 let (_, main_tip) = git_repo.get_main_or_master_branch()?;
819 let (mut ahead, _) =
820 git_repo.get_commits_ahead_behind(&main_tip, &tip_of_pushed_branch)?;
821 ahead.reverse();
822 for patch in generate_cover_letter_and_patch_events(
823 None,
824 git_repo,
825 &ahead,
826 &signer,
827 repo_ref,
828 &None,
829 &[],
830 )
831 .await?
832 {
833 events.push(patch);
834 }
819 } 835 }
820 } 836 }
821 } 837 }