/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-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:
33
33
 
34
34
from .mapping import (
35
35
    default_mapping,
 
36
    decode_git_path,
36
37
    )
37
38
from .object_store import (
38
39
    BazaarObjectStore,
60
61
 
61
62
    def open_repository(self, path):
62
63
        # FIXME: More secure path sanitization
63
 
        transport = self.transport.clone(path.decode('utf-8').lstrip("/"))
 
64
        transport = self.transport.clone(decode_git_path(path).lstrip("/"))
64
65
        trace.mutter('client opens %r: %r', path, transport)
65
66
        return BzrBackendRepo(transport, self.mapping)
66
67