chiark / gitweb /
Avoid use of "my $_", which is not portable
[dgit.git] / tests / dsd-ssh
index 7a075f0b4f660bb4a6c4715e35b927d7fcbc178b..94a95827f2c0cfccbfd6a83708f17e56c885f1c6 100755 (executable)
@@ -8,6 +8,11 @@ tmp=$DGIT_TEST_TMP
 cd /
 userhost="$1"; shift
 export SSH_ORIGINAL_COMMAND="$*"
+
+# undoes PERLLIB so that we rely on dgit-ssh-dispatch setting it
+# we have to compensate with -I so that dgit-ssh-dispatch finds Dgit.pm
+unset PERLLIB
+perl -I $DGIT_TEST_INTREE \
 ${DGIT_SSH_DISPATCH_TEST-dgit-ssh-dispatch} -D $tmp
 
 : '))))))))))))))))))))))))))))))))))))))))'