/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 remote.py

Fix handling of remote branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
        self._lockfiles = lockfiles
193
193
        self._mode_check_done = None
194
194
 
 
195
    def _branch_name_to_ref(self, name):
 
196
        from bzrlib.plugins.git.branch import branch_name_to_ref
 
197
        return branch_name_to_ref(name, default="refs/heads/master")
 
198
 
195
199
    def open_repository(self):
196
200
        return RemoteGitRepository(self, self._lockfiles)
197
201
 
336
340
 
337
341
        return EmptyConfig()
338
342
 
339
 
    def _branch_name_to_ref(self, name):
340
 
        from bzrlib.plugins.git.branch import branch_name_to_ref
341
 
        return branch_name_to_ref(name, default="refs/heads/master")
342
 
 
343
343
    @property
344
344
    def head(self):
345
345
        if self._ref is not None: