History

adapt to changes in `gix-protocol`

Sebastian Thiel committed 1 year ago

Commit 41b65711 parent a5f0d292 files · +6 −3Browse files

Unified · Split

2 files
  1. gitoxide-core/src/pack/receive.rs +4 −1
  2. gix/src/remote/connection/fetch/receive_pack.rs +2 −2
gitoxide-core/src/pack/receive.rs+4−1
@@ -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 for id in self.refmap.mappings.iter().filter_map(|m| m.remote.as_id()) {145 for id in self.refmap.mappings.iter().filter_map(|m| m.remote.as_id()) {
145 arguments.want(id);146 arguments.want(id);
147 has_want = true;
146 }148 }
149 has_want
147 }150 }
148 151
149 fn one_round(152 fn one_round(
gix/src/remote/connection/fetch/receive_pack.rs+2−2
@@ -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 negotiate::add_wants(278 negotiate::add_wants(
279 self.objects,279 self.objects,
280 arguments,280 arguments,
@@ -282,7 +282,7 @@ impl gix_protocol::fetch::Negotiate for Negotiate<'_, '_, '_> { · 1 unmodified line
282 remote_ref_target_known,282 remote_ref_target_known,
283 self.shallow,283 self.shallow,
284 negotiate::make_refmapping_ignore_predicate(self.tags, self.ref_map),284 negotiate::make_refmapping_ignore_predicate(self.tags, self.ref_map),
285 );285 )
286 }286 }
287 287
288 fn one_round(288 fn one_round(