diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-11 16:22:56 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-09-12 07:21:23 +0100 |
| commit | f0921887dc19c6a60a454fb9f64574f62da73af1 (patch) | |
| tree | 4fffef2b18ac76678fa37419e4fc67396f683e03 /src | |
| parent | 708f4137a89a3ce18db7bc416dd60bf27f8302aa (diff) | |
fix(remote): stop fetching after success
instead of trying again over fallback protocols
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/git_remote_nostr/fetch.rs | 1 |
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 { |