sftp server does not allow pushing to new product unless you specify --create-prefix
Bug #36889 reported by
David Allouche
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
James Henstridge |
Bug Description
When trying to push a branch, for example ~person/
This is also related to bug 36888, which is probably the reason why this behaviour is not uncovered by the test suite.
mkdir ~person/
Changed in launchpad: | |
assignee: | nobody → spiv |
To post a comment you must log in.
In general, bzr push requires that the parent directory of the branch already exists. It seems we want it to behave differently for the supermirror? Perhaps it would be nice if bzr interactively gave you the option to try create parent directories?
$ bzr push sftp:// bazaar. launchpad. net/~user/ product/ branch
bzr: Cannot push: parent directory ~user/product does not exist
Try to create it (y/n) ?
Another option would be a command line arg:
$ bzr push sftp:// bazaar. launchpad. net/~user/ product/ branch
bzr: Cannot push: parent directory ~user/product does not exist. Try --mkdirs.
$ bzr push --mkdirs sftp:// bazaar. launchpad. net/~user/ product/ branch
Pushing...