/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

open_branch fails in non-branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
        self.control_files = lockfiles
166
166
        self.repository = GitRepository(gitdir, lockfiles)
167
167
        self.base = gitdir.root_transport.base
 
168
        if '.git' not in gitdir.root_transport.list_dir('.'):
 
169
            raise errors.NotBranchError(self.base)
168
170
 
169
171
    def lock_write(self):
170
172
        self.control_files.lock_write()