diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-09-11 09:56:28 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-09-11 09:56:28 +0100 |
| commit | 2d9bfb816693947e1fb1ae4688d3c75aa9ab7ca1 (patch) | |
| tree | e009dd60ed0ded7568a0144399fad23ef8919200 /src/bin/ngit/sub_commands/init.rs | |
| parent | 1f579f68df785fc5d89b33efe7736bedaa42b910 (diff) | |
fix(init): clone url include grasp servers
and include prompt about pushing understanding pushing directly to
git servers
Diffstat (limited to 'src/bin/ngit/sub_commands/init.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<()> { | |||
| 385 | let git_server = if args.clone_url.is_empty() { | 385 | let git_server = if args.clone_url.is_empty() { |
| 386 | let grasp_server_git_servers: Vec<String> = git_server_defaults | 386 | let grasp_server_git_servers: Vec<String> = git_server_defaults |
| 387 | .iter() | 387 | .iter() |
| 388 | .filter(|s| selected_grasp_servers.iter().any(|r| s.contains(r))) | 388 | .filter(|s| is_grasp_server_clone_url(s)) |
| 389 | .cloned() | 389 | .cloned() |
| 390 | .collect(); | 390 | .collect(); |
| 391 | let mut additional_server_options: Vec<String> = git_server_defaults | 391 | let mut additional_server_options: Vec<String> = git_server_defaults |
| @@ -413,7 +413,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 413 | }, | 413 | }, |
| 414 | )?; | 414 | )?; |
| 415 | 415 | ||
| 416 | if !selected.is_empty() || Interactor::default().choice( | 416 | if selected.is_empty() || Interactor::default().choice( |
| 417 | PromptChoiceParms::default() | 417 | PromptChoiceParms::default() |
| 418 | .with_prompt("if you or another maintainer start pushing directly to these, nostr will be out of date") | 418 | .with_prompt("if you or another maintainer start pushing directly to these, nostr will be out of date") |
| 419 | .dont_report() | 419 | .dont_report() |
| @@ -428,7 +428,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 428 | } | 428 | } |
| 429 | break selected; | 429 | break selected; |
| 430 | }; | 430 | }; |
| 431 | show_multi_input_prompt_success("git servers", &selected); | 431 | show_multi_input_prompt_success("additional git servers", &selected); |
| 432 | let mut combined = grasp_server_git_servers; | 432 | let mut combined = grasp_server_git_servers; |
| 433 | combined.extend(selected); | 433 | combined.extend(selected); |
| 434 | combined | 434 | combined |