upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/repo_ref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repo_ref.rs')
-rw-r--r--src/repo_ref.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repo_ref.rs b/src/repo_ref.rs
index 94af864..0e57d96 100644
--- a/src/repo_ref.rs
+++ b/src/repo_ref.rs
@@ -16,7 +16,7 @@ use crate::client::Client;
16use crate::{ 16use crate::{
17 cli_interactor::{Interactor, InteractorPrompt, PromptInputParms}, 17 cli_interactor::{Interactor, InteractorPrompt, PromptInputParms},
18 client::{get_event_from_global_cache, get_events_from_cache, sign_event, Connect}, 18 client::{get_event_from_global_cache, get_events_from_cache, sign_event, Connect},
19 git::{nostr_git_url_to_repo_coordinates, Repo, RepoActions}, 19 git::{NostrUrlDecoded, Repo, RepoActions},
20}; 20};
21 21
22#[derive(Default)] 22#[derive(Default)]
@@ -263,8 +263,8 @@ fn get_repo_coordinates_from_nostr_remotes(git_repo: &Repo) -> Result<HashSet<Co
263 let mut repo_coordinates = HashSet::new(); 263 let mut repo_coordinates = HashSet::new();
264 for remote_name in git_repo.git_repo.remotes()?.iter().flatten() { 264 for remote_name in git_repo.git_repo.remotes()?.iter().flatten() {
265 if let Some(remote_url) = git_repo.git_repo.find_remote(remote_name)?.url() { 265 if let Some(remote_url) = git_repo.git_repo.find_remote(remote_name)?.url() {
266 if let Ok(coordinates) = nostr_git_url_to_repo_coordinates(remote_url) { 266 if let Ok(nostr_url_decoded) = NostrUrlDecoded::from_str(remote_url) {
267 for c in coordinates { 267 for c in nostr_url_decoded.coordinates {
268 repo_coordinates.insert(c); 268 repo_coordinates.insert(c);
269 } 269 }
270 } 270 }