Skip to content

Push to new launchpad branch using git-remote-bzr #55

@dreispt

Description

@dreispt

I'm trying a typical Launchpad MP workflow using git-remote-bzr.

Cloned the lp repository, I commited changes, and now I need to push them to a new LP branch, to then make a merge proposal.

Using bzr, I would bzr push lp:~<user>/<project>/<branch>:

bzr push lp:~dreis-pt/contract-management/7.0-project_sla-dr

So I try:

git push bzr::lp:~dreis-pt/contract-management/7.0-project_sla-dr

But this results in:

Traceback (most recent call last):
  File "/usr/bin/git-remote-bzr", line 946, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/git-remote-bzr", line 918, in main
    repo = get_repo(url, alias)
  File "/usr/bin/git-remote-bzr", line 804, in get_repo
    origin = bzrlib.bzrdir.BzrDir.open(url, possible_transports=transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 687, in open
    _unsupported=_unsupported)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 721, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1499, in open
    return self._open(transport)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 317, in _open
    return RemoteBzrDir(transport, self)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 436, in __init__
    self._probe_bzrdir()
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 448, in _probe_bzrdir
    self._rpc_open_2_1(path)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 457, in _rpc_open_2_1
    raise errors.NotBranchError(path=self.root_transport.base)
bzrlib.errors.NotBranchError: Not a branch: "bzr+ssh://bazaar.launchpad.net/~dreis-pt/contract-management/7.0-project_sla-dr/".

I did read the available docs but found no help on this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions