From 8d61d6b90b92985194b129def7458ac5a0e8e58f Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Mon, 22 Aug 2022 00:16:46 +0100 Subject: [PATCH] git-cache-proxy: fix compat bug with recent git Closes: #1006695 Signed-off-by: Ian Jackson --- scripts/git-cache-proxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'" } -- 2.30.2