From 5a453a69bd237e3921a6db60f675bdaefb741014 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 18 Jul 2015 18:32:49 +0100 Subject: Make dgit-ssh-dispatch not spew (harmless) warnings if caller tries for a shell session (ie SSH_ORIGINAL_COMMAND not set). --- infra/dgit-ssh-dispatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'infra/dgit-ssh-dispatch') diff --git a/infra/dgit-ssh-dispatch b/infra/dgit-ssh-dispatch index ed9a23d..9c023d8 100755 --- a/infra/dgit-ssh-dispatch +++ b/infra/dgit-ssh-dispatch @@ -119,7 +119,7 @@ sub serve_up ($) { } sub dispatch () { - local ($_) = $ENV{'SSH_ORIGINAL_COMMAND'}; + local ($_) = $ENV{'SSH_ORIGINAL_COMMAND'} // ''; if (m#^: dgit ($lre) git-check ($lre) ;#) { selectpackage $1,$2, sub { prl "divert @_"; finish; }; -- cgit v1.2.3