/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/refs.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-01 21:13:21 UTC
  • mto: This revision was merged to the branch mainline in revision 7027.
  • Revision ID: jelmer@jelmer.uk-20180701211321-dazu15ry3tcvny2l
Fix some git tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    if ref is None:
88
88
        return ref
89
89
    if ref.startswith(LOCAL_BRANCH_PREFIX):
90
 
        return osutils.safe_unicode(ref[len(LOCAL_BRANCH_PREFIX):])
 
90
        return ref[len(LOCAL_BRANCH_PREFIX):].decode('utf-8')
91
91
    raise ValueError("unable to map ref %s back to branch name" % ref)
92
92
 
93
93