Unified · Split
| @@ -140,10 +140,13 @@ impl gix::protocol::fetch::Negotiate for Negotiate<'_> { · 139 unmodified lines | ||
| 140 | 140 | }) |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | − fn add_wants(&mut self, arguments: &mut Arguments, _remote_ref_target_known: &[bool]) { | |
| 143 | + fn add_wants(&mut self, arguments: &mut Arguments, _remote_ref_target_known: &[bool]) -> bool { | |
| 144 | + let mut has_want = false; | |
| 144 | 145 | for id in self.refmap.mappings.iter().filter_map(|m| m.remote.as_id()) { |
| 145 | 146 | arguments.want(id); |
| 147 | + has_want = true; | |
| 146 | 148 | } |
| 149 | + has_want | |
| 147 | 150 | } |
| 148 | 151 | |
| 149 | 152 | fn one_round( |
| @@ -274,7 +274,7 @@ impl gix_protocol::fetch::Negotiate for Negotiate<'_, '_, '_> { · 273 unmodified lines | ||
| 274 | 274 | ) |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | − fn add_wants(&mut self, arguments: &mut Arguments, remote_ref_target_known: &[bool]) { | |
| 277 | + fn add_wants(&mut self, arguments: &mut Arguments, remote_ref_target_known: &[bool]) -> bool { | |
| 278 | 278 | negotiate::add_wants( |
| 279 | 279 | self.objects, |
| 280 | 280 | arguments, |
| @@ -282,7 +282,7 @@ impl gix_protocol::fetch::Negotiate for Negotiate<'_, '_, '_> { · 1 unmodified line | ||
| 282 | 282 | remote_ref_target_known, |
| 283 | 283 | self.shallow, |
| 284 | 284 | negotiate::make_refmapping_ignore_predicate(self.tags, self.ref_map), |
| 285 | − ); | |
| 285 | + ) | |
| 286 | 286 | } |
| 287 | 287 | |
| 288 | 288 | fn one_round( |