From: Anthony PERARD Date: Sun, 21 Aug 2022 23:16:46 +0000 (+0100) Subject: git-cache-proxy: fix compat bug with recent git X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=8d61d6b90b92985194b129def7458ac5a0e8e58f;p=chiark-utils.git git-cache-proxy: fix compat bug with recent git Closes: #1006695 Signed-off-by: Ian Jackson --- diff --git a/scripts/git-cache-proxy b/scripts/git-cache-proxy index 62fb95f..2d80cb1 100755 --- a/scripts/git-cache-proxy +++ b/scripts/git-cache-proxy @@ -260,7 +260,7 @@ sub readcommand () { fail "Bad hex in packet length" unless $hex_len =~ m|^[0-9a-fA-F]{4}$|; my $line = xread -4 + hex $hex_len; unless (($service,$specpath,$spechost) = $line =~ - m|^(git-[a-z-]+) /*([!-~ ]+)\0host=([!-~]+)\0$|) { + m|^(git-[a-z-]+) /*([!-~ ]+)\0host=([!-~]+)\0|) { $line =~ s|[^ -~]+| |g; gitfail "unknown/unsupported instruction `$line'" }