Comment 8 for bug 348308

Revision history for this message
Matt Nordhoff (mnordhoff) wrote :

I just added an evil little monkeypatch to my bzr-smart script that changes the jail to your configured root (e.g. /srv/bzr/repo):

from bzrlib.smart import request

def setup_jail(self):
    # The backing transport is a chroot on /srv/bzr/repo
    transport = self._backing_transport.clone('/')
    request.jail_info.transports = [transport, self._backing_transport]

request.SmartServerRequest.setup_jail = setup_jail

Monkeypatching is wrong, and might break, of course, but at least it works right now.