chiark / gitweb /
Bring forward push of the version tag ref so it happens alongside the push of the...
[dgit.git] / dgit-repos-server
index 5055de63bc44b939dbd44e4bc683056507f9b4c7..e6b2dfbb2b64893f64ce68337e24e7176094424e 100644 (file)
@@ -393,6 +393,16 @@ sub stunthook () {
     onwardpush();
 }
 
+#----- git-upload-pack -----
+
+sub fixmissing__git_upload_pack () {
+    $destrepo = "$dgitrepos/_empty";
+}
+
+sub main__git_upload_pack () {
+    runcmd qw(git upload-pack), $destdir;
+}
+
 #----- arg parsing and main program -----
 
 sub argval () {
@@ -427,11 +437,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";