upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-09-11 16:22:56 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-09-12 07:21:23 +0100
commitf0921887dc19c6a60a454fb9f64574f62da73af1 (patch)
tree4fffef2b18ac76678fa37419e4fc67396f683e03 /src/bin
parent708f4137a89a3ce18db7bc416dd60bf27f8302aa (diff)
fix(remote): stop fetching after success
instead of trying again over fallback protocols
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/git_remote_nostr/fetch.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs
index baf56ed..312690a 100644
--- a/src/bin/git_remote_nostr/fetch.rs
+++ b/src/bin/git_remote_nostr/fetch.rs
@@ -147,6 +147,7 @@ fn fetch_from_git_server(
147 if !failed_protocols.is_empty() { 147 if !failed_protocols.is_empty() {
148 term.write_line(format!("fetch: succeeded over {protocol}").as_str())?; 148 term.write_line(format!("fetch: succeeded over {protocol}").as_str())?;
149 } 149 }
150 break;
150 } 151 }
151 } 152 }
152 if success { 153 if success {