chiark / gitweb /
dgit-repos-server: Pass $dgitrepos properly to stunt hook (and hence to policy hook)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Apr 2015 21:49:48 +0000 (22:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:06 +0000 (11:54 +0100)
infra/dgit-repos-server

index f391b08..9d6edb8 100755 (executable)
@@ -793,6 +793,7 @@ sub parseargsdispatch () {
        @ARGV == 1 or die;
        $package = shift @ARGV;
        defined($distro = $ENV{'DGIT_DRS_DISTRO'}) or die;
+       defined($dgitrepos = $ENV{'DGIT_DRS_REPOS'}) or die;
        defined($suitesfile = $ENV{'DGIT_DRS_SUITES'}) or die;
        defined($workrepo = $ENV{'DGIT_DRS_WORK'}) or die;
        defined($destrepo = $ENV{'DGIT_DRS_DEST'}) or die;
@@ -812,7 +813,7 @@ sub parseargsdispatch () {
     $ENV{'DGIT_DRS_DISTRO'} = $distro = argval();
     $ENV{'DGIT_DRS_SUITES'} = argval();
     $ENV{'DGIT_DRS_KEYRINGS'} = argval();
-    $dgitrepos = argval();
+    $ENV{'DGIT_DRS_REPOS'} = $dgitrepos = argval();
     $ENV{'DGIT_DRS_POLICYHOOK'} = $policyhook = argval();
 
     die unless @ARGV==1 && $ARGV[0] eq '--ssh';