diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-05-16 05:04:05 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-16 09:29:26 -0700 |
commit | 4f4e7e9b62b0e38dec2ea58b66f766a825539c3d (patch) | |
tree | e23b9891d4270714a29a520c87ed9f6062aed1f0 /contrib/remote-helpers | |
parent | Merge branch 'fc/remote-hg' (early part) (diff) | |
download | tgif-4f4e7e9b62b0e38dec2ea58b66f766a825539c3d.tar.xz |
remote-bzr: fix cloning of non-listable repos
Commit 95b0c60 (remote-bzr: add support for bzr repos) introduced a
regression by assuming all bzr remote repos are listable, but they are
not.
If they are not listable they are basically useless, so let's assume
there is no bzr repo.
Reported-by: Thorsten Kranzkowski <dl8bcu@dl8bcu.de>
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-x | contrib/remote-helpers/git-remote-bzr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index b295dd4895..ad42317ca0 100755 --- a/contrib/remote-helpers/git-remote-bzr +++ b/contrib/remote-helpers/git-remote-bzr @@ -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 |