We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git-protocol
1 parent 179ccd7 commit 64db0b2Copy full SHA for 64db0b2
gitoxide-core/src/pack/receive.rs
@@ -91,13 +91,15 @@ impl<W> protocol::fetch::DelegateBlocking for CloneDelegate<W> {
91
if self.wanted_refs.is_empty() {
92
for r in refs {
93
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);
+ if let Some(id) = id {
+ match self.ref_filter {
+ Some(ref_prefixes) => {
+ if ref_prefixes.iter().any(|prefix| path.starts_with_str(prefix)) {
98
+ arguments.want(id);
99
+ }
100
}
101
+ None => arguments.want(id),
102
- None => arguments.want(id),
103
104
105
} else {
0 commit comments