From 33d74266cd1d03b3afe1b6626331deac6c762fb3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 13 Sep 2019 16:02:26 +0100 Subject: test suite: Test dgit-mirror-ssh-wrap This script will break if rsync changes the way it passes arguments to the peer. We need to catch that. Signed-off-by: Ian Jackson --- tests/tests/mirror | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/tests/mirror') diff --git a/tests/tests/mirror b/tests/tests/mirror index 4947688..4aa756b 100755 --- a/tests/tests/mirror +++ b/tests/tests/mirror @@ -31,7 +31,9 @@ set -ex : $sentinel cat >&2 $sentinel shift # eat HOST -sh -c "\$*" +export SSH_ORIGINAL_COMMAND="\$*" +exec \${DGIT_MIRROR_SSH_WRAP_TEST-dgit-mirror-ssh-wrap} \ + '$tmp/git-mirror/' .git -- END chmod +x $tmp/stunt-ssh -- cgit v1.2.3