chiark / gitweb /
git-cache-proxy: fix compat bug with recent git
authorAnthony PERARD <anthony.perard@citrix.com>
Sun, 21 Aug 2022 23:16:46 +0000 (00:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Aug 2022 23:18:50 +0000 (00:18 +0100)
Closes: #1006695
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
scripts/git-cache-proxy

index 62fb95f5d6da2b5c3ff4484519a26990cf4ce0b4..2d80cb1b48c1026707b4bd79be0242def7fe9680 100755 (executable)
@@ -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'"
     }