The die needs to be qualified. This little bit of fcode has never
worked.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
if (defined $quilt) {
push @dgitcmd, "--quilt=$quilt";
if ($quilt =~ m/baredebian/) {
if (defined $quilt) {
push @dgitcmd, "--quilt=$quilt";
if ($quilt =~ m/baredebian/) {
- die "needed upstream commmitish with --quilt=baredebian";
+ die "needed upstream commmitish with --quilt=baredebian"
+ unless defined $upstreamc;
push @dgitcmd, "--upstream-commitish=$upstreamc";
}
}
push @dgitcmd, "--upstream-commitish=$upstreamc";
}
}