diff options
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/fetch.rs | 8 |
1 files changed, 6 insertions, 2 deletions
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( | |||
| 121 | let mut success = false; | 121 | let mut success = false; |
| 122 | for protocol in &protocols_to_attempt { | 122 | for protocol in &protocols_to_attempt { |
| 123 | term.write_line( | 123 | term.write_line( |
| 124 | format!("fetching from {} over {protocol}...", server_url.domain(),).as_str(), | 124 | format!( |
| 125 | "fetching over {protocol} from {}...", | ||
| 126 | server_url.short_name(), | ||
| 127 | ) | ||
| 128 | .as_str(), | ||
| 125 | )?; | 129 | )?; |
| 126 | 130 | ||
| 127 | let formatted_url = server_url.format_as(protocol, &decoded_nostr_url.user)?; | 131 | let formatted_url = server_url.format_as(protocol, &decoded_nostr_url.user)?; |
| @@ -152,7 +156,7 @@ fn fetch_from_git_server( | |||
| 152 | } else { | 156 | } else { |
| 153 | let error = anyhow!( | 157 | let error = anyhow!( |
| 154 | "{} failed over {}{}", | 158 | "{} failed over {}{}", |
| 155 | server_url.domain(), | 159 | server_url.short_name(), |
| 156 | join_with_and(&failed_protocols), | 160 | join_with_and(&failed_protocols), |
| 157 | if decoded_nostr_url.protocol.is_some() { | 161 | if decoded_nostr_url.protocol.is_some() { |
| 158 | " and nostr url contains protocol override so no other protocols were attempted" | 162 | " and nostr url contains protocol override so no other protocols were attempted" |