chiark / gitweb /
Fix upstream_commitish_search API
[dgit.git] / git-debrebase
index 171249f771e1716a9eb0b39675c460780597291e..340a590999d2551d825de2baed8477fdc168af9d 100755 (executable)
@@ -2697,9 +2697,10 @@ END
     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,
                                 };