Skip to content

Commit

Permalink
adapt to changes in git-protocol (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 2, 2022
1 parent 179ccd7 commit 64db0b2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions gitoxide-core/src/pack/receive.rs
Expand Up @@ -91,13 +91,15 @@ impl<W> protocol::fetch::DelegateBlocking for CloneDelegate<W> {
if self.wanted_refs.is_empty() {
for r in refs {
let (path, id, _) = r.unpack();
match self.ref_filter {
Some(ref_prefixes) => {
if ref_prefixes.iter().any(|prefix| path.starts_with_str(prefix)) {
arguments.want(id);
if let Some(id) = id {
match self.ref_filter {
Some(ref_prefixes) => {
if ref_prefixes.iter().any(|prefix| path.starts_with_str(prefix)) {
arguments.want(id);
}
}
None => arguments.want(id),
}
None => arguments.want(id),
}
}
} else {
Expand Down

0 comments on commit 64db0b2

Please sign in to comment.