/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

Make API resemble that of python-git.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""An adapter between a Git control dir and a Bazaar BzrDir"""
18
18
 
19
 
import git, os
 
19
import git, git.repo, os
20
20
 
21
21
import bzrlib
22
22
from bzrlib.lazy_import import lazy_import
97
97
        if repo._git.heads == []:
98
98
            head = None
99
99
        else:
100
 
            head = repo._git.heads[0].commit.id
 
100
            head = repo._git.head()
101
101
        return branch.GitBranch(self, repo, head, 
102
102
                                    self.root_transport.base, self._lockfiles)
103
103