diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-20 12:06:38 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-20 12:06:38 +0000 |
| commit | 7d981ce57797dc772c3b3ced7ba6b61a3acdbed5 (patch) | |
| tree | 4f9c7176d2584806dfbbc82d8cf6ef893e69f542 | |
| parent | b916c35d7686e2e3673f453f02770fa443b90a16 (diff) | |
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.
| -rw-r--r-- | src/bin/git_remote_nostr/push.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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( | |||
| 219 | for refspec in git_server_refspecs { | 219 | for refspec in git_server_refspecs { |
| 220 | let (_, to) = refspec_to_from_to(refspec).unwrap(); | 220 | let (_, to) = refspec_to_from_to(refspec).unwrap(); |
| 221 | eprintln!( | 221 | eprintln!( |
| 222 | "error {to} you must run `ngit init` before pushing updates. you've been offered maintainership but you must accept it before pushing", | 222 | "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.", |
| 223 | repo_ref.name, | ||
| 223 | ); | 224 | ); |
| 224 | } | 225 | } |
| 225 | if proposal_refspecs.is_empty() { | 226 | if proposal_refspecs.is_empty() { |