Commit 4f4e7e9b authored by Felipe Contreras's avatar Felipe Contreras Committed by Junio C Hamano

remote-bzr: fix cloning of non-listable repos

Commit 95b0c608 (remote-bzr: add support for bzr repos) introduced a
regression by assuming all bzr remote repos are listable, but they are

If they are not listable they are basically useless, so let's assume
there is no bzr repo.
Reported-by: default avatarThorsten Kranzkowski <>
Signed-off-by: Felipe Contreras's avatarFelipe Contreras <>
Signed-off-by: default avatarJunio C Hamano <>
parent 0c2b1cf8
......@@ -840,6 +840,9 @@ def get_repo(url, alias):
repo = origin.open_repository()
if not repo.user_transport.listable():
# this repository is not usable for us
raise bzrlib.errors.NoRepositoryPresent(repo.bzrdir)
except bzrlib.errors.NoRepositoryPresent:
# branch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment