Skip to content

Commit

Permalink
remote-bzr: add support for older versions
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Apr 9, 2014
1 parent 867bf7b commit 5ff5699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/remote-helpers/git-remote-bzr
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def clone(path, remote_branch):
def get_remote_branch(name):
remote_branch = bzrlib.branch.Branch.open(branches[name],
possible_transports=transports)
if isinstance(remote_branch.user_transport, bzrlib.transport.local.LocalTransport):
if isinstance(remote_branch.bzrdir.root_transport, bzrlib.transport.local.LocalTransport):
return remote_branch

branch_path = os.path.join(dirname, 'clone', name)
Expand Down Expand Up @@ -842,7 +842,7 @@ def get_repo(url, alias):
if not wanted:
try:
repo = origin.open_repository()
if not repo.user_transport.listable():
if not repo.bzrdir.root_transport.listable():
# this repository is not usable for us
raise bzrlib.errors.NoRepositoryPresent(repo.bzrdir)
except bzrlib.errors.NoRepositoryPresent:
Expand Down

0 comments on commit 5ff5699

Please sign in to comment.