rewriting bzr serve command at the server yields an error

John Arbash Meinel john at arbash-meinel.com
Sun Dec 28 19:58:40 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tzury Bar Yochay wrote:
> I was trying to hook at bzr+ssh:// by using the parameter `command="my_hook"`
> at .ssh/authorized_keys.
> 
> When doing so I observed the following command transmitted over ssh:
> 'bzr serve --inet --directory=/ --allow-writes'
> 
> for security reasons, I wanted to modify the `--directory=/` so it will
> not point to the root, but to another location (where a bzr repository exists)
> 
> i.e. instead of bzr serve --inet --directory=/ --allow-writes
> I rewrote it as `bzr serve --inet --directory=/pub/bzr-repos/repo-foo
> --allow-writes`
> 
> When doing so I got an error:
> bzr: ERROR: Not a branch: "bzr+ssh://localhost/pub/bzr-repos/repo-foo".
> 
> I added a trailing slash `/repo-foo/` and it did not made a change
> 
> at the `client` side I was typing:
> `bzr branch bzr+ssh://localhost/pub/bzr-repos/repo-foo`
> 
> 

I'm guessing one side isn't translating the paths the way you think it is.

You might try:

"bzr branch bzr+ssh://localhost/"

Or you might try rewriting the URL to "/pub/bzr-repos" and then use
"bzr+ssh://localhost/repo-foo".

You can also try using "-Dhpss" and then checking the ~/.bzr.log file to
see what requests are being made.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklX2nAACgkQJdeBCYSNAANdpgCeKRUbYQI4EmcKXgKZ/FN/zoiD
CHQAn08hmYoBHf4i69PYc0Sx6BDlasKk
=EDir
-----END PGP SIGNATURE-----



More information about the bazaar mailing list