From 180f3a96060482bc05c38f62121ad6c9b11981b2 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 8 Nov 2014 16:45:11 +0000 Subject: [PATCH] dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send, sigh). --- debian/changelog | 3 +++ dgit-repos-server | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index cc027789..a14811d2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,6 +18,9 @@ dgit (0.23~) unstable; urgency=low forced command wrappers. Implicitly, this defines a new ssh-based command protocol. + * dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some + git versions send, sigh). + -- dgit (0.22.1) unstable; urgency=high diff --git a/dgit-repos-server b/dgit-repos-server index 3e74217a..c70bc27f 100755 --- a/dgit-repos-server +++ b/dgit-repos-server @@ -576,9 +576,9 @@ sub parseargsdispatch () { (?: \S* / )? ( [-0-9a-z]+ ) \s+ - (?: \S* / )? + '? (?: \S* / )? ($package_re) \.git - $ + '?$ }ox or reject "command string not understood"; my $method = $1; -- 2.30.2