upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/git_remote_nostr
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/git_remote_nostr')
-rw-r--r--src/bin/git_remote_nostr/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs
index daa924f..29731e2 100644
--- a/src/bin/git_remote_nostr/main.rs
+++ b/src/bin/git_remote_nostr/main.rs
@@ -14,7 +14,11 @@ use std::{
14use anyhow::{Context, Result, bail}; 14use anyhow::{Context, Result, bail};
15use client::{Connect, consolidate_fetch_reports, get_repo_ref_from_cache}; 15use client::{Connect, consolidate_fetch_reports, get_repo_ref_from_cache};
16use git::{RepoActions, nostr_url::NostrUrlDecoded}; 16use git::{RepoActions, nostr_url::NostrUrlDecoded};
17use ngit::{client, git, login::existing::load_existing_login}; 17use ngit::{
18 client::{self, Params},
19 git,
20 login::existing::load_existing_login,
21};
18use nostr::nips::nip19::Nip19Coordinate; 22use nostr::nips::nip19::Nip19Coordinate;
19use utils::read_line; 23use utils::read_line;
20 24
@@ -33,7 +37,7 @@ async fn main() -> Result<()> {
33 37
34 let git_repo_path = git_repo.get_path()?; 38 let git_repo_path = git_repo.get_path()?;
35 39
36 let mut client = Client::default(); 40 let mut client = Client::new(Params::with_git_config_relay_defaults(&Some(&git_repo)));
37 41
38 if let Ok((signer, _, _)) = load_existing_login( 42 if let Ok((signer, _, _)) = load_existing_login(
39 &Some(&git_repo), 43 &Some(&git_repo),