Comment 1 for bug 1700946

Revision history for this message
Nish Aravamudan (nacc) wrote :

Relevent bit of spec:

git fetch (according to `git ubuntu clone` refspecs)
# do we want a flag to prevent the following?
delete refs/heads/importer/*
delete refs/tags/importer/*
copy refs/remotes/pkg/* to refs/heads/importer/{debian,ubuntu}/*
fetch refs/tags/* to refs/tags/importer/* # in case the local tags have been manipulated

Relevent bit of code (importer.py):

        self.local_repo.add_base_remotes(self.pkgname, repo_owner=owner)
        if not args.no_fetch:
            self.local_repo.fetch_base_remotes(must_exist=False)

        self.local_repo.delete_branches_in_namespace(self.namespace)
        self.local_repo.delete_tags_in_namespace(self.namespace)

        self.local_repo.copy_base_references(self.namespace)
        if not args.no_fetch:
            self.local_repo.fetch_remote_refspecs('pkg',
                refspecs=['refs/tags/*:refs/tags/%s/*' % self.namespace],
                must_exist=False)

I think the base reference copy must be failing. I wonder if it's not copying the tags correctly in that case.