chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b319617
)
git-cache-proxy: fix compat bug with recent git
author
Anthony PERARD
<anthony.perard@citrix.com>
Sun, 21 Aug 2022 23:16:46 +0000
(
00:16
+0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/scripts/git-cache-proxy
b/scripts/git-cache-proxy
index 62fb95f5d6da2b5c3ff4484519a26990cf4ce0b4..2d80cb1b48c1026707b4bd79be0242def7fe9680 100755
(executable)
--- 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'"
}