summaryrefslogtreecommitdiff
path: root/contrib/remote-helpers
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2014-04-09 18:50:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-04-09 21:20:48 (GMT)
commit5ff569908dd6e174c2d81df8e25ecc8af34fc5a8 (patch)
treef0b70fc1d1e202b1a89ab1f2385b51824bdaf13b /contrib/remote-helpers
parent867bf7b490d6a4bd19b6f9ff7d30af654e9df276 (diff)
downloadgit-5ff569908dd6e174c2d81df8e25ecc8af34fc5a8.zip
git-5ff569908dd6e174c2d81df8e25ecc8af34fc5a8.tar.gz
git-5ff569908dd6e174c2d81df8e25ecc8af34fc5a8.tar.bz2
remote-bzr: add support for older versions
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/remote-helpers')
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index 332aba7..7f354c8 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -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)
@@ -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: