mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
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>
This commit is contained in:
parent
f00f2511d9
commit
8954441ac7
1 changed files with 4 additions and 0 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue