/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

Don't claim to support working trees for bare repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
class BareLocalGitControlDirFormat(LocalGitControlDirFormat):
233
233
 
234
234
    bare = True
235
 
    supports_workingtrees = False
236
 
 
237
 
    @classmethod
238
 
    def _known_formats(self):
239
 
        return set([RemoteGitControlDirFormat()])
240
235
 
241
236
    def get_format_description(self):
242
237
        return "Local Git Repository (bare)"
251
246
        if (not url.startswith("git://") and not url.startswith("git+")):
252
247
            raise bzr_errors.NotBranchError(transport.base)
253
248
        # little ugly, but works
 
249
        format = RemoteGitControlDirFormat()
254
250
        from bzrlib.plugins.git.remote import GitSmartTransport
255
251
        if not isinstance(transport, GitSmartTransport):
256
252
            raise bzr_errors.NotBranchError(transport.base)
257
 
        return RemoteGitControlDirFormat()
 
253
        return format
258
254
 
259
255
 
260
256