Skip to content

Commit 64db0b2

Browse files
committed
adapt to changes in git-protocol (#450)
1 parent 179ccd7 commit 64db0b2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

gitoxide-core/src/pack/receive.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,15 @@ impl<W> protocol::fetch::DelegateBlocking for CloneDelegate<W> {
9191
if self.wanted_refs.is_empty() {
9292
for r in refs {
9393
let (path, id, _) = r.unpack();
94-
match self.ref_filter {
95-
Some(ref_prefixes) => {
96-
if ref_prefixes.iter().any(|prefix| path.starts_with_str(prefix)) {
97-
arguments.want(id);
94+
if let Some(id) = id {
95+
match self.ref_filter {
96+
Some(ref_prefixes) => {
97+
if ref_prefixes.iter().any(|prefix| path.starts_with_str(prefix)) {
98+
arguments.want(id);
99+
}
98100
}
101+
None => arguments.want(id),
99102
}
100-
None => arguments.want(id),
101103
}
102104
}
103105
} else {

0 commit comments

Comments
 (0)