NoRepositoryPresent exception raised on symbolic link to branch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned | ||
Bazaar/Avahi Plugin |
New
|
Undecided
|
Unassigned |
Bug Description
I have a symbolic link at ~/.bazaar/
When bzr-avahi is installed, running bzr serve spits out this traceback:
File "/home/
_function(
File "/home/
server.
File "/home/
for branch in BzrDir.
File "/usr/lib/
for branch, repo in BzrDir.
File "/usr/lib/
recurse, value = evaluate(bzrdir)
File "/usr/lib/
branch = bzrdir.
File "/usr/lib/
return format.open(self, _found=True)
File "/usr/lib/
_repository
File "/usr/lib/
raise errors.
bzrlib.
It seems as if the symlinks aren't followed, although I haven't looked at the code, and as such cannot be sure.
Are you trying to share your entire home directory? If so, I'd recommend against that since it is giving read only access to everything in your home dir to the world (including SSH and PGP private keys).
As for the error itself, bzr-avahi is using the standard bzrlib. find_bzrdirs( ) API. I think it should probably be ignoring branches that raise NoRepositoryPresent rather than barfing like this.