/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/plugins/git/transportgit.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-23 22:25:11 UTC
  • mto: This revision was merged to the branch mainline in revision 7053.
  • Revision ID: jelmer@jelmer.uk-20180723222511-gns8mqohgakwa2b9
Some brz-git fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
        try:
137
137
            iter_files = list(self.transport.clone("refs").iter_files_recursive())
138
138
            for filename in iter_files:
139
 
                unquoted_filename = urlutils.unquote(filename)
140
 
                if PY3:
141
 
                    # JRV: Work around unquote returning a text_type string on
142
 
                    # PY3.
143
 
                    unquoted_filename = unquoted_filename.encode('utf-8')
 
139
                unquoted_filename = urlutils.unquote_to_bytes(filename)
144
140
                refname = osutils.pathjoin(b"refs", unquoted_filename)
145
141
                if check_ref_format(refname):
146
142
                    keys.add(refname)