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/fetch.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/bin/git_remote_nostr/fetch.rs') diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs index 0a98db2..c48da85 100644 --- a/src/bin/git_remote_nostr/fetch.rs +++ b/src/bin/git_remote_nostr/fetch.rs @@ -121,7 +121,11 @@ fn fetch_from_git_server( let mut success = false; for protocol in &protocols_to_attempt { term.write_line( - format!("fetching from {} over {protocol}...", server_url.domain(),).as_str(), + format!( + "fetching over {protocol} from {}...", + server_url.short_name(), + ) + .as_str(), )?; let formatted_url = server_url.format_as(protocol, &decoded_nostr_url.user)?; @@ -152,7 +156,7 @@ fn fetch_from_git_server( } 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