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

  • Committer: Jelmer Vernooij
  • Date: 2020-06-27 14:48:19 UTC
  • mto: (7490.40.32 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200627144819-saq1xtc00v73w5q7
Add functions for encoding/decoding git paths.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    )
46
46
from .mapping import (
47
47
    default_mapping,
 
48
    encode_git_path,
48
49
    foreign_vcs_git,
49
50
    mapping_registry,
50
51
    )
307
308
                try:
308
309
                    obj = tree_lookup_path(
309
310
                        self._git.object_store.__getitem__, root_tree,
310
 
                        path.encode('utf-8'))
 
311
                        encode_git_path(path))
311
312
                    if isinstance(obj, tuple):
312
313
                        (mode, item_id) = obj
313
314
                        obj = self._git.object_store[item_id]