Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote-bzr: add support for older versions
author
Felipe Contreras
<felipe.contreras@gmail.com>
Wed, 9 Apr 2014 18:50:02 +0000
(13:50 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 9 Apr 2014 21:20:48 +0000
(14:20 -0700)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/remote-helpers/git-remote-bzr
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
867bf7b
)
diff --git
a/contrib/remote-helpers/git-remote-bzr
b/contrib/remote-helpers/git-remote-bzr
index 332aba784b8810120df8e1ddfafeb034a55337a3..7f354c88e70664fc049273e8487406827c965602 100755
(executable)
--- 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)
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)
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 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:
# this repository is not usable for us
raise bzrlib.errors.NoRepositoryPresent(repo.bzrdir)
except bzrlib.errors.NoRepositoryPresent: