From: Felipe Contreras Date: Sat, 6 Apr 2013 03:49:21 +0000 (-0600) Subject: remote-bzr: avoid unreferred tags X-Git-Tag: v1.8.3-rc0~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8954441ac7468cf3659f70747d390ed7c9f070d5;p=git remote-bzr: avoid unreferred tags They have no content, there's nothing we can do with them. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 9466cb9de1..0bcf8c5835 100755 --- a/contrib/remote-helpers/git-remote-bzr +++ b/contrib/remote-helpers/git-remote-bzr @@ -654,7 +654,11 @@ def do_capabilities(parser): def do_list(parser): global tags print "? refs/heads/%s" % 'master' + + history = parser.repo.revision_history() for tag, revid in parser.repo.tags.get_tag_dict().items(): + if revid not in history: + continue print "? refs/tags/%s" % tag tags[tag] = revid print "@refs/heads/%s HEAD" % 'master'