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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-01 21:57:00 UTC
  • mfrom: (7490.39.3 move-launchpad)
  • Revision ID: breezy.the.bot@gmail.com-20200601215700-joxuzo6w172gq74v
Move launchpad hoster support to the launchpad plugin.

Merged from https://code.launchpad.net/~jelmer/brz/move-launchpad/+merge/384931

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    )
55
55
from .mapping import (
56
56
    default_mapping,
57
 
    encode_git_path,
58
57
    entry_mode,
59
58
    extract_unusual_modes,
60
59
    mapping_registry,
200
199
            mode = entry_mode(value)
201
200
        hexsha = lookup_ie_sha1(child_path, value)
202
201
        if hexsha is not None:
203
 
            tree.add(encode_git_path(value.name), mode, hexsha)
 
202
            tree.add(value.name.encode("utf-8"), mode, hexsha)
204
203
    if not allow_empty and len(tree) == 0:
205
204
        # Only the root can be an empty tree
206
205
        if empty_file_name is not None: