From 7d981ce57797dc772c3b3ced7ba6b61a3acdbed5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 20 Feb 2026 12:06:38 +0000 Subject: improve push error when co-maintainer has no announcement the previous message said 'run ngit init' with no explanation of why or what it does. the new message explains the user has been offered co-maintainership, names the repo, and points to 'ngit init -d' for a fast non-interactive acceptance path. --- src/bin/git_remote_nostr/push.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/bin/git_remote_nostr') diff --git a/src/bin/git_remote_nostr/push.rs b/src/bin/git_remote_nostr/push.rs index 43abc8e..e1c94f8 100644 --- a/src/bin/git_remote_nostr/push.rs +++ b/src/bin/git_remote_nostr/push.rs @@ -219,7 +219,8 @@ async fn create_and_publish_events_and_proposals( for refspec in git_server_refspecs { let (_, to) = refspec_to_from_to(refspec).unwrap(); eprintln!( - "error {to} you must run `ngit init` before pushing updates. you've been offered maintainership but you must accept it before pushing", + "error {to} you have been offered co-maintainership of '{}'. to accept, run `ngit init` which will publish your own repository announcement. use `ngit init -d` to accept with defaults and no interactive prompts.", + repo_ref.name, ); } if proposal_refspecs.is_empty() { -- cgit v1.2.3