chiark / gitweb /
dgit-repos-server: Handle ' ' in SSH_ORIGINAL_COMMAND (which some git versions send...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Nov 2014 16:45:11 +0000 (16:45 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Nov 2014 22:22:20 +0000 (22:22 +0000)
debian/changelog
dgit-repos-server

index cc02778939e1edbcbf62c09468a18c87b6c38cbd..a14811d26c8dd8a1a4f1493b9623000e7ebef2be 100644 (file)
@@ -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
index 3e74217a822159be9a602b2dd6549dd8af10eee4..c70bc27fd13b8a7d50ea3d25dba2bd9a7588f3ef 100755 (executable)
@@ -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;