diff options
Diffstat (limited to 'src/bin/ngit/sub_commands/init.rs')
| -rw-r--r-- | src/bin/ngit/sub_commands/init.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/ngit/sub_commands/init.rs b/src/bin/ngit/sub_commands/init.rs index 3c58a52..ee5f1ab 100644 --- a/src/bin/ngit/sub_commands/init.rs +++ b/src/bin/ngit/sub_commands/init.rs | |||
| @@ -4,6 +4,7 @@ use anyhow::{Context, Result}; | |||
| 4 | use console::{Style, Term}; | 4 | use console::{Style, Term}; |
| 5 | use ngit::{ | 5 | use ngit::{ |
| 6 | cli_interactor::PromptConfirmParms, | 6 | cli_interactor::PromptConfirmParms, |
| 7 | client::Params, | ||
| 7 | git::nostr_url::{NostrUrlDecoded, save_nip05_to_git_config_cache}, | 8 | git::nostr_url::{NostrUrlDecoded, save_nip05_to_git_config_cache}, |
| 8 | }; | 9 | }; |
| 9 | use nostr::{ | 10 | use nostr::{ |
| @@ -68,7 +69,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 68 | // TODO: check for empty repo | 69 | // TODO: check for empty repo |
| 69 | // TODO: check for existing maintaiers file | 70 | // TODO: check for existing maintaiers file |
| 70 | 71 | ||
| 71 | let mut client = Client::default(); | 72 | let mut client = Client::new(Params::with_git_config_relay_defaults(&Some(&git_repo))); |
| 72 | 73 | ||
| 73 | let repo_coordinate = (try_and_get_repo_coordinates_when_remote_unknown(&git_repo).await).ok(); | 74 | let repo_coordinate = (try_and_get_repo_coordinates_when_remote_unknown(&git_repo).await).ok(); |
| 74 | 75 | ||