/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2019-09-21 17:08:09 UTC
  • mfrom: (7389 work)
  • mto: This revision was merged to the branch mainline in revision 7390.
  • Revision ID: jelmer@jelmer.uk-20190921170809-ejewbeue585deajo
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
785
785
        :param refs: Refs dictionary (name -> git sha1)
786
786
        :return: iterator over (ref_name, tag_name, peeled_sha1, unpeeled_sha1)
787
787
        """
788
 
        refs = self.repository._git.refs
 
788
        refs = self.repository.controldir.get_refs_container()
789
789
        for ref_name, unpeeled in viewitems(refs.as_dict()):
790
790
            try:
791
791
                tag_name = ref_to_tag_name(ref_name)
1155
1155
                                                        self.target.repository)
1156
1156
        if stop_revision is None:
1157
1157
            stop_revision = self.source.last_revision()
 
1158
        if fetch_tags is None:
 
1159
            c = self.source.get_config_stack()
 
1160
            fetch_tags = c.get('branch.fetch_tags')
1158
1161
        determine_wants = interrepo.get_determine_wants_revids(
1159
1162
            [stop_revision], include_tags=fetch_tags)
1160
1163
        interrepo.fetch_objects(determine_wants, limit=limit)