upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr')
-rw-r--r--src/bin/git_remote_nostr/push.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs
index c4953f8..56bf177 100644
--- a/src/bin/git_remote_nostr/push.rs
+++ b/src/bin/git_remote_nostr/push.rs
@@ -199,6 +199,20 @@ async fn create_and_publish_events(
199 if proposal_refspecs.is_empty() { 199 if proposal_refspecs.is_empty() {
200 return Ok((vec![], true)); 200 return Ok((vec![], true));
201 } 201 }
202 } else if repo_ref
203 .maintainers_without_annoucnement
204 .clone()
205 .is_some_and(|ms| ms.contains(&user_ref.public_key))
206 {
207 for refspec in git_server_refspecs {
208 let (_, to) = refspec_to_from_to(refspec).unwrap();
209 eprintln!(
210 "error {to} you must run `ngit init` before pushing updates. you've been offered maintainership but you must accept it before pushing",
211 );
212 }
213 if proposal_refspecs.is_empty() {
214 return Ok((vec![], true));
215 }
202 } 216 }
203 217
204 let mut events = vec![]; 218 let mut events = vec![];