chiark / gitweb /
dgit-repos-server: tag2upload: Cope with native packages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Jul 2019 15:44:27 +0000 (16:44 +0100)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 7 Jul 2019 08:54:19 +0000 (09:54 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
infra/dgit-repos-server

index 68429eb73a13881614e33510f844648ab6fedd48..df0be6bf605720ac7636edf10683b00184e769ab 100755 (executable)
@@ -1199,6 +1199,8 @@ END
     my $quilt;
     my $distro_ok;
 
+    confess if defined $upstreamt;
+
     parsetag_general sub {
        if (m/^(\S+) / && exists $need{$1}) {
            $_ = $';
@@ -1244,8 +1246,6 @@ END
     }
     runcmd @fetch;
 
-    $upstreamc eq git_rev_parse "refs/tags/$upstreamt" or die;
-
     runcmd qw(git checkout -q), "refs/tags/$tagval";
 
     @fetch = (@dgit, qw(fetch), $suite);
@@ -1255,7 +1255,10 @@ END
        failedcmd @fetch unless $? == 4*256;
     }
     # this is just to get the orig, so we don't really care about the ref
-    runcmd qw(git deborig), "$upstreamc";
+    if (defined $upstreamc) {
+       $upstreamc eq git_rev_parse "refs/tags/$upstreamt" or die;
+       runcmd qw(git deborig), "$upstreamc";
+    }
 
     my @dgitcmd;
     push @dgitcmd, @dgit;