From 7dcbc84806e7b3000835eb9132dfc4e9003e382a Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 7 Jan 2026 15:39:41 +0000 Subject: fix: include npub in clone URLs generated by create_repo_announcement The clone URL format should be http://{domain}/{npub}/{identifier}.git but was missing the npub segment. This caused git push authorization to fail because the URL didn't match the expected repository path. --- tests/common/sync_helpers.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/common/sync_helpers.rs b/tests/common/sync_helpers.rs index 910baae..acf8c87 100644 --- a/tests/common/sync_helpers.rs +++ b/tests/common/sync_helpers.rs @@ -340,10 +340,16 @@ pub fn build_layer3_quote_with_q_tag( /// # Returns /// A signed repository announcement event ready to send. pub fn create_repo_announcement(keys: &Keys, domains: &[&str], identifier: &str) -> Event { - // Build clone URLs for all domains (with .git suffix) + // Get npub for the clone URL path (format: //.git) + let npub = keys + .public_key() + .to_bech32() + .expect("Failed to convert public key to npub"); + + // Build clone URLs for all domains (with npub and .git suffix) let clone_urls: Vec = domains .iter() - .map(|d| format!("http://{}/{}.git", d, identifier)) + .map(|d| format!("http://{}/{}/{}.git", d, npub, identifier)) .collect(); // Build relay URLs for all domains -- cgit v1.2.3