From 2d9bfb816693947e1fb1ae4688d3c75aa9ab7ca1 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 11 Sep 2025 09:56:28 +0100 Subject: fix(init): clone url include grasp servers and include prompt about pushing understanding pushing directly to git servers --- src/bin/ngit/sub_commands/init.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 690714d..11a812b 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs @@ -385,7 +385,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { let git_server = if args.clone_url.is_empty() { let grasp_server_git_servers: Vec = git_server_defaults .iter() - .filter(|s| selected_grasp_servers.iter().any(|r| s.contains(r))) + .filter(|s| is_grasp_server_clone_url(s)) .cloned() .collect(); let mut additional_server_options: Vec = git_server_defaults @@ -413,7 +413,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { }, )?; - if !selected.is_empty() || Interactor::default().choice( + if selected.is_empty() || Interactor::default().choice( PromptChoiceParms::default() .with_prompt("if you or another maintainer start pushing directly to these, nostr will be out of date") .dont_report() @@ -428,7 +428,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { } break selected; }; - show_multi_input_prompt_success("git servers", &selected); + show_multi_input_prompt_success("additional git servers", &selected); let mut combined = grasp_server_git_servers; combined.extend(selected); combined -- cgit v1.2.3