sftp works but bzr+ssh doesn't (Windows)

Asked by besy

I managed to run a working SSH/SFTP server in Windows. I'm using Copssh. I can connect to it with ssh.exe and sftp.exe.

The following command works:
bzr init sftp://localhost/

But this one doesn't:
bzr init bzr+ssh://localhost/

I get the following error message:
bzr: ERROR: Parent directory of bzr+ssh://localhost/ does not exist.
You may supply --create-prefix to create all leading parent directories.

If I use --create-prefix, I get the following error message:
bzr: ERROR: Failed to create path prefix for bzr+ssh://localhost/

I also tried it without the trailing slash, but that doesn't make any difference.

How can I get bzr+ssh to work in Windows? Do I have to run "bzr serve" (currently I don't)?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Martin Pool
Solved:
Last query:
Last reply:
Revision history for this message
besy (besy) said :
#1

I forgot to write: I'm using Bazaar from bzr-setup-1.17-2.exe

Revision history for this message
besy (besy) said :
#2

More information: I installed paramiko-1.7.5 (and its dependancy pycrypto-2.0.1) like it is suggested in the FAQ (http://bazaar-vcs.org/FAQ), but this doesn't make any difference. This hint in the FAQ probably isn't relevant anymore, is it?

Revision history for this message
Best Martin Pool (mbp) said :
#3

So it turns out this is a bug 416710 that you can't init in the root directory. In the meantime you should put the repository in the a subdirectory, which is almost certainly what you want anyhow.

Revision history for this message
besy (besy) said :
#4

Thanks Martin Pool, that solved my question.