if (!@upstreams) {
if ($do_tags) {
my @tried;
- my $ups_rev = upstream_commitish_search $version, \@tried;
+ my ($ups_tag, $ups_rev) =
+ upstream_commitish_search $version, \@tried;
if ($ups_rev) {
- my $this = f_ "git tag %s", $tried[-1];
+ my $this = f_ "git tag %s", $ups_tag;
push @upstreams, { Commit => $ups_rev,
Source => $this,
};