From: Ian Jackson Date: Sat, 8 Nov 2014 16:45:11 +0000 (+0000) Subject: dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send... X-Git-Tag: debian/0.30~302 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=180f3a96060482bc05c38f62121ad6c9b11981b2 dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send, sigh). --- 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;