提交 8954441a 编写于 作者: F Felipe Contreras 提交者: Junio C Hamano

remote-bzr: avoid unreferred tags

They have no content, there's nothing we can do with them.
Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 f00f2511
......@@ -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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册