chiark / gitweb /
dgit-mirror-ssh-wrap: Cope with new rsync rune
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Jun 2020 16:07:47 +0000 (17:07 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Jun 2020 18:04:08 +0000 (19:04 +0100)
rsync 3.2 passes -I and -v to the remote process.  These options are
no problem.

Rather than making this into an single mess of a regexp, add a new
regexp for the new rune.  That's clearer and I think probably just
about as future-proof.

Closes: #963489
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
infra/dgit-mirror-ssh-wrap

index 4ce4e24521494fe5d8b1511a3750cd2a8aadd285..7f55feadb0db2d735e2a7857bf6df0660ae65c80 100755 (executable)
@@ -27,6 +27,8 @@ my $command = $ENV{SSH_ORIGINAL_COMMAND}
 $_ = $command;
 
 m{^rsync --server -lHtre\.iLsfxC --timeout=\d+ --delete --safe-links \. $d$}
+||
+m{^rsync --server -lHtre\.iLsfxCIv --timeout=\d+ --delete --safe-links \. $d$}
 
 # To add a new command pattern, add || m{^ ... $} above.
 # The pattern should contain $d where the per-package destination