Showing the changes to git-protocol/src (1 of 1 file). Show all
Unified · Split
| @@ -185,7 +185,7 @@ where · 184 unmodified lines | ||
| 185 | 185 | let mut arguments = Arguments::new(protocol_version, fetch_features)?; |
| 186 | 186 | let mut previous_response = None::<Response>; |
| 187 | 187 | let mut round = 1; |
| 188 | − loop { | |
| 188 | + 'negotiation: loop { | |
| 189 | 189 | progress.step(); |
| 190 | 190 | progress.set_name(format!("negotiate (round {})", round)); |
| 191 | 191 | round += 1; |
| @@ -202,10 +202,10 @@ where · 10 unmodified lines | ||
| 202 | 202 | setup_remote_progress(&mut progress, &mut reader); |
| 203 | 203 | } |
| 204 | 204 | delegate.receive_pack(reader, progress, &parsed_refs, &response)?; |
| 205 | − break; | |
| 205 | + break 'negotiation; | |
| 206 | 206 | } else { |
| 207 | 207 | match action { |
| 208 | − Action::Close => break, | |
| 208 | + Action::Close => break 'negotiation, | |
| 209 | 209 | Action::Continue => Some(response), |
| 210 | 210 | } |
| 211 | 211 | } |