upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-12-02 07:20:05 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-12-02 07:20:05 +0000
commita6a1eebda0ab5e8b34e97799ff7b57ef194261c7 (patch)
treee1d5290366a17c7f1345288b2d6bfb6b998e09a8 /src/lib
parentd482eb8f33b571c56ca3e3fa4ae05d6cd8069569 (diff)
fix: repo_ref 'not found' err suggest `ngit init'
if the nostr remote was created by the maintainer before `ngit init` was ran. the error is more likely to occur when a user clones a repo using the nostr remote whist the relay in the hint is down and the fallback relays dont have the announcement. or if the user is offline when they clone.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/client.rs b/src/lib/client.rs
index ee48c14..4b87cd8 100644
--- a/src/lib/client.rs
+++ b/src/lib/client.rs
@@ -855,7 +855,7 @@ pub async fn get_repo_ref_from_cache(
855 let repo_ref = RepoRef::try_from(( 855 let repo_ref = RepoRef::try_from((
856 repo_events 856 repo_events
857 .first() 857 .first()
858 .context("no repo announcement event found at specified coordinates")? 858 .context("no repo announcement event found at specified coordinates. if you are the repository maintainer consider running `ngit init` to create one")?
859 .clone(), 859 .clone(),
860 repo_coordinates 860 repo_coordinates
861 .iter() 861 .iter()