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

Merge new dulwich; fetching objects from local repository works now; they aren't converted yet though.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    def open_branch(self, ignored=None):
100
100
        """'create' a branch for this dir."""
101
101
        repo = self.open_repository()
102
 
        if repo._git.heads == []:
103
 
            head = None
104
 
        else:
105
 
            head = repo._git.head()
106
 
        return branch.LocalGitBranch(self, repo, "HEAD", head, self._lockfiles)
 
102
        return branch.LocalGitBranch(self, repo, "HEAD", repo._git.head(), self._lockfiles)
107
103
 
108
104
    def open_repository(self, shared=False):
109
105
        """'open' a repository for this dir."""