upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ngit/sub_commands/init.rs')
-rw-r--r--src/bin/ngit/sub_commands/init.rs3
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};
4use console::{Style, Term}; 4use console::{Style, Term};
5use ngit::{ 5use 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};
9use nostr::{ 10use 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