From ad28bd8db1a6e953dce999eea85becda1d90beae Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 6 Sep 2024 13:07:29 +0100 Subject: fix(remote): `fetch` and `list` status copy so that it the filesystem url is shown --- src/bin/git_remote_nostr/list.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/bin/git_remote_nostr/list.rs') diff --git a/src/bin/git_remote_nostr/list.rs b/src/bin/git_remote_nostr/list.rs index ae76614..3614626 100644 --- a/src/bin/git_remote_nostr/list.rs +++ b/src/bin/git_remote_nostr/list.rs @@ -165,8 +165,8 @@ pub fn list_from_remote( for protocol in &protocols_to_attempt { term.write_line( format!( - "fetching ref list from {} over {protocol}...", - server_url.domain(), + "fetching ref list over {protocol} from {}...", + server_url.short_name(), ) .as_str(), )?; @@ -184,8 +184,8 @@ pub fn list_from_remote( if !failed_protocols.is_empty() { term.write_line( format!( - "list: succeeded over {protocol} for {}", - server_url.domain(), + "list: succeeded over {protocol} from {}", + server_url.short_name(), ) .as_str(), )?; @@ -210,7 +210,7 @@ pub fn list_from_remote( } else { let error = anyhow!( "{} failed over {}{}", - server_url.domain(), + server_url.short_name(), join_with_and(&failed_protocols), if decoded_nostr_url.protocol.is_some() { " and nostr url contains protocol override so no other protocols were attempted" -- cgit v1.2.3