chiark / gitweb /
dgit-repos-push-receiver: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Jan 2014 14:32:18 +0000 (14:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:01 +0000 (18:29 +0000)
dgit-repos-push-receiver

index 390f2e0..0f7c4b0 100644 (file)
@@ -299,14 +299,15 @@ sub parseargs () {
        $cmd =~ m{
             ^
             (?:\S*/)?
-           (?:dgit-repos-push-receiver|git-receive-pack)
+           (git-receive-pack|git-upload-pack)
            \s+
             (?:\S*/)?
            ($package_re)\.git
             $
         }ox 
            or die "requested command $cmd not understood";
-       $pkg = $1;
+       $method = $1;
+       $pkg = $2;
     } else {
        die;
     }
@@ -316,6 +317,7 @@ sub parseargs () {
 
 sub main () {
     parseargs();
+fixme check method;
     makeworkingclone();
     setupstunthook();
     runcmd qw(git receive-pack), $destdir;