Skip to content

Commit

Permalink
remote-bzr: avoid unreferred tags
Browse files Browse the repository at this point in the history
They have no content, there's nothing we can do with them.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Apr 7, 2013
1 parent f00f251 commit 8954441
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/remote-helpers/git-remote-bzr
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 8954441

Please sign in to comment.