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

  • Committer: Jelmer Vernooij
  • Date: 2020-07-18 23:14:00 UTC
  • mfrom: (7490.40.62 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200718231400-jaes9qltn8oi8xss
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
from .mapping import (
33
33
    default_mapping,
 
34
    decode_git_path,
34
35
    )
35
36
from .object_store import (
36
37
    BazaarObjectStore,
58
59
 
59
60
    def open_repository(self, path):
60
61
        # FIXME: More secure path sanitization
61
 
        transport = self.transport.clone(path.decode('utf-8').lstrip("/"))
 
62
        transport = self.transport.clone(decode_git_path(path).lstrip("/"))
62
63
        trace.mutter('client opens %r: %r', path, transport)
63
64
        return BzrBackendRepo(transport, self.mapping)
64
65