chiark / gitweb /
dgit-repos-server: wip, unpack regexp a bit
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 22:11:25 +0000 (22:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:02 +0000 (18:29 +0000)
dgit-repos-server

index 5055de6..31a44f3 100644 (file)
@@ -427,11 +427,11 @@ sub parseargsdispatch () {
     my $cmd = $ENV{'SSH_ORIGINAL_COMMAND'};
     $cmd =~ m{
        ^
-       (?:\S*/)?
-       ([-0-9a-z]+)
+       (?: \S* / )?
+       ( [-0-9a-z]+ )
        \s+
-       (?:\S*/)?
-       ($package_re)\.git
+       (?: \S* / )?
+       ($package_re) \.git
        $
     }ox 
     or reject "command string not understood";