]> git.ipfire.org Git - thirdparty/git.git/commitdiff
remote-bzr: avoid unreferred tags
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 6 Apr 2013 03:49:21 +0000 (21:49 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Apr 2013 07:39:27 +0000 (00:39 -0700)
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>
contrib/remote-helpers/git-remote-bzr

index 9466cb9de1d0dbe7d6569d01d628eb52f549549a..0bcf8c5835dbb1a974523397746f0b444e27b7b6 100755 (executable)
@@ -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'