/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

Support control directories with a 'branches' subdirectory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
    def probe_transport(self, transport):
128
128
        try:
129
 
            if not transport.has_any(['info/refs', '.git/branches',
130
 
                                      'branches']):
 
129
            if not transport.has_any(['info/refs', '.git/HEAD', 'HEAD', 'objects', '.git/objects']):
131
130
                raise bzr_errors.NotBranchError(path=transport.base)
132
131
        except bzr_errors.NoSuchFile:
133
132
            raise bzr_errors.NotBranchError(path=transport.base)