From dc0db358abe19481e475e10c32149b53370f1a1c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 30 May 2024 05:57:31 +0200 Subject: Merging upstream version 1.72.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/gix-protocol/src/handshake/refs/shared.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vendor/gix-protocol/src/handshake/refs/shared.rs') diff --git a/vendor/gix-protocol/src/handshake/refs/shared.rs b/vendor/gix-protocol/src/handshake/refs/shared.rs index 1d0dfc256..046a2a1b1 100644 --- a/vendor/gix-protocol/src/handshake/refs/shared.rs +++ b/vendor/gix-protocol/src/handshake/refs/shared.rs @@ -123,6 +123,10 @@ pub(in crate::handshake::refs) fn parse_v1( } match path.strip_suffix(b"^{}") { Some(stripped) => { + if hex_hash.iter().all(|b| *b == b'0') && stripped == b"capabilities" { + // this is a special dummy-ref just for the sake of getting capabilities across in a repo that is empty. + return Ok(()); + } let (previous_path, tag) = out_refs .pop() -- cgit v1.2.3