Skip to content

Commit 5ff5699

Browse files
felipecgitster
authored andcommitted
remote-bzr: add support for older versions
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 867bf7b commit 5ff5699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/remote-helpers/git-remote-bzr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ def clone(path, remote_branch):
759759
def get_remote_branch(name):
760760
remote_branch = bzrlib.branch.Branch.open(branches[name],
761761
possible_transports=transports)
762-
if isinstance(remote_branch.user_transport, bzrlib.transport.local.LocalTransport):
762+
if isinstance(remote_branch.bzrdir.root_transport, bzrlib.transport.local.LocalTransport):
763763
return remote_branch
764764

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

0 commit comments

Comments
 (0)