remote-bzr: fix cloning of non-listable repos
[gitweb.git] / contrib / remote-helpers / git-remote-bzr
index b295dd489531f23bbaae5c07eeed6e94c2a9aa4c..ad42317ca095c960f5a8d87aee768d9690ef6eaa 100755 (executable)
@@ -840,6 +840,9 @@ def get_repo(url, alias):
 
     try:
         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