aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-05 21:49:21 -0600
committerJunio C Hamano <gitster@pobox.com>2013-04-07 00:39:27 -0700
commit8954441ac7468cf3659f70747d390ed7c9f070d5 (patch)
tree2baebf9d939269980afb031ea52a40b4571dd011 /contrib
parentf00f2511d97efd01d75eb1f769366ccc50a01dc9 (diff)
downloadgit-8954441ac7468cf3659f70747d390ed7c9f070d5.tar.gz
git-8954441ac7468cf3659f70747d390ed7c9f070d5.tar.xz
remote-bzr: avoid unreferred tags
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index 9466cb9de..0bcf8c583 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'